Fix for MinGW

Fixes #42
This commit is contained in:
Dave Hickin
2016-09-07 10:45:39 +01:00
parent 1c4b7810b1
commit d978c4c3bf

View File

@@ -10,7 +10,9 @@
// gently nudge the compiler to inline our wrappers
// Warning: Only use this when the template body is *small*.
// You have been warned!
#if defined(__GNUC__) && __GNUC__>=3
#if defined(__MINGW32__)
# define FORCE_INLINE inline
#elif defined(__GNUC__) && __GNUC__>=3
# define FORCE_INLINE __attribute__((always_inline)) inline
#elif defined(_MSC_VER)
# define FORCE_INLINE __forceinline