include/begin_code.h
changeset 7665 4c0a6cfe27a0
parent 7657 7a8955fe2f63
child 7771 4434498bf4b9
     1.1 --- a/include/begin_code.h	Tue Aug 20 14:17:48 2013 -0400
     1.2 +++ b/include/begin_code.h	Tue Aug 20 14:21:35 2013 -0400
     1.3 @@ -33,6 +33,14 @@
     1.4  #endif
     1.5  #define _begin_code_h
     1.6  
     1.7 +#ifndef SDL_DEPRECATED
     1.8 +#  if (__GNUC__ >= 4)  /* technically, this arrived in gcc 3.1, but oh well. */
     1.9 +#    define SDL_DEPRECATED __attribute__((deprecated))
    1.10 +#  else
    1.11 +#    define SDL_DEPRECATED
    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__)