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