Added an SDL_FORCE_INLINE macro.
This commit is contained in:
parent
124288fdb9
commit
e79e3b2343
1 changed files with 8 additions and 0 deletions
|
@ -128,6 +128,14 @@
|
||||||
#define __inline__
|
#define __inline__
|
||||||
#endif
|
#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 */
|
/* Apparently this is needed by several Windows compilers */
|
||||||
#if !defined(__MACH__)
|
#if !defined(__MACH__)
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue