Fixed compiler warnings in Mac Xcode builds.

This commit is contained in:
Ryan C. Gordon 2013-04-03 11:58:04 -04:00
parent 569de57dd7
commit 7641f6840f

View file

@ -128,6 +128,7 @@
#define __inline__ #define __inline__
#endif #endif
#ifndef SDL_FORCE_INLINE
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define SDL_FORCE_INLINE __forceinline #define SDL_FORCE_INLINE __forceinline
#elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) ) #elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
@ -135,6 +136,7 @@
#else #else
#define SDL_FORCE_INLINE static __inline__ #define SDL_FORCE_INLINE static __inline__
#endif #endif
#endif
/* Apparently this is needed by several Windows compilers */ /* Apparently this is needed by several Windows compilers */
#if !defined(__MACH__) #if !defined(__MACH__)