diff --git a/include/boost/container/detail/workaround.hpp b/include/boost/container/detail/workaround.hpp index 3cb731f..dde4abb 100644 --- a/include/boost/container/detail/workaround.hpp +++ b/include/boost/container/detail/workaround.hpp @@ -101,9 +101,8 @@ #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_CONTAINER_FORCEINLINE inline -//#elif defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ < 5))) -#elif defined(__GNUC__) && (__GNUC__ <= 5) - //Older GCCs have problems with forceinline +#elif defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__)) + //Older GCCs and MinGw have problems with forceinline #define BOOST_CONTAINER_FORCEINLINE inline #else #define BOOST_CONTAINER_FORCEINLINE BOOST_FORCEINLINE