Added SDL_DEPRECATED #define.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Aug 2013 14:21:35 -0400
changeset 76654c0a6cfe27a0
parent 7664 6995a81e065a
child 7666 603fb699946c
Added SDL_DEPRECATED #define.
include/begin_code.h
     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__)