include/begin_code.h
changeset 7054 9a9d05664124
parent 7032 305feca4f152
child 7191 75360622e65f
child 8460 f483e8bdae3c
equal deleted inserted replaced
7053:187225ae13e5 7054:9a9d05664124
   126 */
   126 */
   127 #ifndef SDL_INLINE_OKAY
   127 #ifndef SDL_INLINE_OKAY
   128 #define __inline__
   128 #define __inline__
   129 #endif
   129 #endif
   130 
   130 
       
   131 #ifndef SDL_FORCE_INLINE
   131 #if defined(_MSC_VER)
   132 #if defined(_MSC_VER)
   132 #define SDL_FORCE_INLINE __forceinline
   133 #define SDL_FORCE_INLINE __forceinline
   133 #elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
   134 #elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
   134 #define SDL_FORCE_INLINE __attribute__((always_inline)) static inline
   135 #define SDL_FORCE_INLINE __attribute__((always_inline)) static inline
   135 #else
   136 #else
   136 #define SDL_FORCE_INLINE static __inline__
   137 #define SDL_FORCE_INLINE static __inline__
       
   138 #endif
   137 #endif
   139 #endif
   138 
   140 
   139 /* Apparently this is needed by several Windows compilers */
   141 /* Apparently this is needed by several Windows compilers */
   140 #if !defined(__MACH__)
   142 #if !defined(__MACH__)
   141 #ifndef NULL
   143 #ifndef NULL