include/begin_code.h
changeset 8879 f6e4f24df1ac
parent 8583 fb2933ca805f
child 9619 b94b6d0bff0f
     1.1 --- a/include/begin_code.h	Fri Jun 20 11:01:05 2014 -0300
     1.2 +++ b/include/begin_code.h	Fri Jun 20 11:10:16 2014 -0300
     1.3 @@ -41,6 +41,14 @@
     1.4  #  endif
     1.5  #endif
     1.6  
     1.7 +#ifndef SDL_UNUSED
     1.8 +#  ifdef __GNUC__
     1.9 +#    define SDL_UNUSED __attribute__((unused))
    1.10 +#  else
    1.11 +#    define SDL_UNUSED
    1.12 +#  endif
    1.13 +#endif
    1.14 +
    1.15  /* Some compilers use a special export keyword */
    1.16  #ifndef DECLSPEC
    1.17  # if defined(__WIN32__) || defined(__WINRT__)