Explorar o código

SDL 2.0.0 defined __inline__ and some code relies on it now.

Sam Lantinga %!s(int64=12) %!d(string=hai) anos
pai
achega
30ce2bc723
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      include/begin_code.h

+ 6 - 0
include/begin_code.h

@@ -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 */