summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/linguist/shared/profileparser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linguist/shared/profileparser.h b/src/linguist/shared/profileparser.h
index 643e339b3..ad71e8196 100644
--- a/src/linguist/shared/profileparser.h
+++ b/src/linguist/shared/profileparser.h
@@ -52,7 +52,8 @@
#endif
// Be fast even for debug builds
-#ifdef __GNUC__
+// MinGW GCC 4.5+ has a problem with always_inline putTok and putBlockLen
+#if defined(__GNUC__) && !(defined(__MINGW32__) && __GNUC__ == 4 && __GNUC_MINOR__ >= 5)
# define ALWAYS_INLINE inline __attribute__((always_inline))
#elif defined(_MSC_VER)
# define ALWAYS_INLINE __forceinline