Disable forceinline with MinGw, as it has bugs with forceinline

This commit is contained in:
Ion Gaztañaga
2022-08-24 14:30:04 +02:00
parent 4622a57994
commit 5c03f64f9b

View File

@@ -101,9 +101,8 @@
#elif defined(BOOST_MSVC) && (_MSC_VER < 1900 || defined(_DEBUG)) #elif defined(BOOST_MSVC) && (_MSC_VER < 1900 || defined(_DEBUG))
//"__forceinline" and MSVC seems to have some bugs in old versions and in debug mode //"__forceinline" and MSVC seems to have some bugs in old versions and in debug mode
#define BOOST_CONTAINER_FORCEINLINE inline #define BOOST_CONTAINER_FORCEINLINE inline
//#elif defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ < 5))) #elif defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__))
#elif defined(__GNUC__) && (__GNUC__ <= 5) //Older GCCs and MinGw have problems with forceinline
//Older GCCs have problems with forceinline
#define BOOST_CONTAINER_FORCEINLINE inline #define BOOST_CONTAINER_FORCEINLINE inline
#else #else
#define BOOST_CONTAINER_FORCEINLINE BOOST_FORCEINLINE #define BOOST_CONTAINER_FORCEINLINE BOOST_FORCEINLINE