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 b9b706f832
commit 1925fe9cf9
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__)