From 9fd566412d44c7f5da6245f1cb7e1a574d23a62e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 15 Feb 2015 15:25:56 +0800 Subject: [PATCH] Refine --- format.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/format.h b/format.h index 03d4aa24..52e8d5b3 100644 --- a/format.h +++ b/format.h @@ -56,6 +56,9 @@ // many valid cases. # pragma GCC diagnostic ignored "-Wshadow" # endif +# if __cplusplus >= 201103L || defined __GXX_EXPERIMENTAL_CXX0X__ +# define FMT_HAS_GXX_CXX11 1 +# endif #else # define FMT_GCC_EXTENSION #endif @@ -86,12 +89,6 @@ # define FMT_HAS_CPP_ATTRIBUTE(x) 0 #endif -#ifdef __GNUC__ -# if __cplusplus >= 201103L || defined __GXX_EXPERIMENTAL_CXX0X__ -# define FMT_HAS_GXX_CXX11 1 -# endif -#endif - #ifndef FMT_USE_VARIADIC_TEMPLATES // Variadic templates are available in GCC since version 4.4 // (http://gcc.gnu.org/projects/cxx0x.html) and in Visual C++