Fix compiler warnings in Native Client and Linux builds.

This commit is contained in:
Sam Clegg
2014-06-20 11:10:16 -03:00
parent 6c5cb5400f
commit 7e52722dfd
10 changed files with 34 additions and 7 deletions

View File

@@ -41,6 +41,14 @@
# endif
#endif
#ifndef SDL_UNUSED
# ifdef __GNUC__
# define SDL_UNUSED __attribute__((unused))
# else
# define SDL_UNUSED
# endif
#endif
/* Some compilers use a special export keyword */
#ifndef DECLSPEC
# if defined(__WIN32__) || defined(__WINRT__)