include/begin_code.h
changeset 8460 f483e8bdae3c
parent 8439 14d94a8a9fb6
parent 7054 9a9d05664124
child 8461 ca8dad9be3d4
     1.1 --- a/include/begin_code.h	Sat Apr 13 23:03:46 2013 -0400
     1.2 +++ b/include/begin_code.h	Sun Apr 14 11:42:55 2013 -0400
     1.3 @@ -128,6 +128,16 @@
     1.4  #define __inline__
     1.5  #endif
     1.6  
     1.7 +#ifndef SDL_FORCE_INLINE
     1.8 +#if defined(_MSC_VER)
     1.9 +#define SDL_FORCE_INLINE __forceinline
    1.10 +#elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
    1.11 +#define SDL_FORCE_INLINE __attribute__((always_inline)) static inline
    1.12 +#else
    1.13 +#define SDL_FORCE_INLINE static __inline__
    1.14 +#endif
    1.15 +#endif
    1.16 +
    1.17  /* Apparently this is needed by several Windows compilers */
    1.18  #if !defined(__MACH__)
    1.19  #ifndef NULL