Fixed compiler warnings in Mac Xcode builds.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Apr 2013 11:58:04 -0400
changeset 7054 9a9d05664124
parent 7053 187225ae13e5
child 7055 76323a708ea5
Fixed compiler warnings in Mac Xcode builds.
include/begin_code.h
--- a/include/begin_code.h	Wed Apr 03 11:49:25 2013 -0400
+++ b/include/begin_code.h	Wed Apr 03 11:58:04 2013 -0400
@@ -128,6 +128,7 @@
 #define __inline__
 #endif
 
+#ifndef SDL_FORCE_INLINE
 #if defined(_MSC_VER)
 #define SDL_FORCE_INLINE __forceinline
 #elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
@@ -135,6 +136,7 @@
 #else
 #define SDL_FORCE_INLINE static __inline__
 #endif
+#endif
 
 /* Apparently this is needed by several Windows compilers */
 #if !defined(__MACH__)