From d978c4c3bfd55a4d41ae11ff47cbb0caeb97db47 Mon Sep 17 00:00:00 2001 From: Dave Hickin Date: Wed, 7 Sep 2016 10:45:39 +0100 Subject: [PATCH] Fix for MinGW Fixes #42 --- src/misc/pv/templateMeta.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc/pv/templateMeta.h b/src/misc/pv/templateMeta.h index fa75b5b..1f9ad54 100644 --- a/src/misc/pv/templateMeta.h +++ b/src/misc/pv/templateMeta.h @@ -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