Skip to content

Commit

Permalink
Added SDL_DEPRECATED #define.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 20, 2013
1 parent 094a72b commit abbaa90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/begin_code.h
Expand Up @@ -33,6 +33,14 @@
#endif
#define _begin_code_h

#ifndef SDL_DEPRECATED
# if (__GNUC__ >= 4) /* technically, this arrived in gcc 3.1, but oh well. */
# define SDL_DEPRECATED __attribute__((deprecated))
# else
# define SDL_DEPRECATED
# endif
#endif

/* Some compilers use a special export keyword */
#ifndef DECLSPEC
# if defined(__WIN32__)
Expand Down

0 comments on commit abbaa90

Please sign in to comment.