include/begin_code.h
changeset 8879 f6e4f24df1ac
parent 8583 fb2933ca805f
child 9619 b94b6d0bff0f
equal deleted inserted replaced
8878:f7ba2119fd91 8879:f6e4f24df1ac
    36 #ifndef SDL_DEPRECATED
    36 #ifndef SDL_DEPRECATED
    37 #  if (__GNUC__ >= 4)  /* technically, this arrived in gcc 3.1, but oh well. */
    37 #  if (__GNUC__ >= 4)  /* technically, this arrived in gcc 3.1, but oh well. */
    38 #    define SDL_DEPRECATED __attribute__((deprecated))
    38 #    define SDL_DEPRECATED __attribute__((deprecated))
    39 #  else
    39 #  else
    40 #    define SDL_DEPRECATED
    40 #    define SDL_DEPRECATED
       
    41 #  endif
       
    42 #endif
       
    43 
       
    44 #ifndef SDL_UNUSED
       
    45 #  ifdef __GNUC__
       
    46 #    define SDL_UNUSED __attribute__((unused))
       
    47 #  else
       
    48 #    define SDL_UNUSED
    41 #  endif
    49 #  endif
    42 #endif
    50 #endif
    43 
    51 
    44 /* Some compilers use a special export keyword */
    52 /* Some compilers use a special export keyword */
    45 #ifndef DECLSPEC
    53 #ifndef DECLSPEC