Commit 30ce2bc72368ec0bb051d067cde14f49674b9fc0

Sam Lantinga 2013-10-22T21:53:58

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/include/begin_code.h b/include/begin_code.h
index 7addded..968a540 100644
--- a/include/begin_code.h
+++ b/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 */