Added an SDL_FORCE_INLINE macro.

This commit is contained in:
Ryan C. Gordon 2013-03-15 01:02:30 -04:00
parent 124288fdb9
commit e79e3b2343

View file

@ -128,6 +128,14 @@
#define __inline__
#endif
#if defined(_MSC_VER)
#define SDL_FORCE_INLINE __forceinline
#elif defined(__GNUC__) || defined(__clang__)
#define SDL_FORCE_INLINE __attribute__((always_inline)) static inline
#else
#define SDL_FORCE_INLINE static __inline__
#endif
/* Apparently this is needed by several Windows compilers */
#if !defined(__MACH__)
#ifndef NULL