From e41303a26bb4384000dde9485e50e47dbd9a4521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 24 Aug 2022 14:30:23 +0200 Subject: [PATCH] Disable forceinline with MinGw, as it has bugs --- include/boost/intrusive/detail/workaround.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/intrusive/detail/workaround.hpp b/include/boost/intrusive/detail/workaround.hpp index 40db395..1e18d20 100644 --- a/include/boost/intrusive/detail/workaround.hpp +++ b/include/boost/intrusive/detail/workaround.hpp @@ -48,7 +48,7 @@ #elif defined(BOOST_MSVC) && (_MSC_VER < 1900 || defined(_DEBUG)) //"__forceinline" and MSVC seems to have some bugs in old versions and in debug mode #define BOOST_INTRUSIVE_FORCEINLINE inline -#elif defined(BOOST_GCC) && (__GNUC__ <= 5) +#elif defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__)) //Older GCCs have problems with forceinline #define BOOST_INTRUSIVE_FORCEINLINE inline #else