SDL 2.0.0 defined __inline__ and some code relies on it now.
authorSam Lantinga <slouken@libsdl.org>
Tue, 22 Oct 2013 21:53:58 -0700
changeset 7881 a74e5be22566
parent 7880 b8d30d14d535
child 7882 b81e4cc2932e
SDL 2.0.0 defined __inline__ and some code relies on it now.
include/begin_code.h
--- a/include/begin_code.h	Tue Oct 22 21:53:42 2013 -0700
+++ b/include/begin_code.h	Tue Oct 22 21:53:58 2013 -0700
@@ -107,8 +107,14 @@
       defined(__WATCOMC__) || defined(__LCC__) || \
       defined(__DECC)
 #define SDL_INLINE __inline
+#ifndef __inline__
+#define __inline__ __inline
+#endif
 #else
 #define SDL_INLINE inline
+#ifndef __inline__
+#define __inline__ inline
+#endif
 #endif
 #endif /* SDL_INLINE not defined */