From 3d208e024d6806ac2e386787bb2bc114d67add92 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 27 Sep 2021 22:31:41 +0800 Subject: [PATCH] Improve c++0x check --- nel/include/nel/misc/types_nl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nel/include/nel/misc/types_nl.h b/nel/include/nel/misc/types_nl.h index a257eb293..5af1ce3f3 100644 --- a/nel/include/nel/misc/types_nl.h +++ b/nel/include/nel/misc/types_nl.h @@ -174,10 +174,6 @@ # define NL_COMP_GCC #endif -#if defined(_HAS_CPP0X) || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(NL_COMP_VC_VERSION) && NL_COMP_VC_VERSION >= 110) -# define NL_ISO_CPP0X_AVAILABLE -#endif - #if defined(NL_COMP_GCC) && (__cplusplus >= 201103L) # define NL_NO_EXCEPTION_SPECS #endif @@ -233,6 +229,10 @@ # endif #endif +#if defined(_HAS_CPP0X) || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(NL_COMP_VC_VERSION) && NL_COMP_VC_VERSION >= 110) || (defined(NL_COMP_GCC) && (GCC_VERSION >= 40400) && (__cplusplus >= 201103L)) +# define NL_ISO_CPP0X_AVAILABLE +#endif + // Remove stupid Visual C++ warnings #ifdef NL_OS_WINDOWS # pragma warning (disable : 4503) // STL: Decorated name length exceeded, name was truncated