From 2582f41e12566e2029ddeedd3cd12dbba450c6cd Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 2 Feb 2018 19:16:13 -0800 Subject: [PATCH] Fix ifdefs --- include/fmt/core.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 45d8dd37..417629bb 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -26,11 +26,14 @@ #ifdef __GNUC__ # define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) -# if __cplusplus >= 201103L || defined __GXX_EXPERIMENTAL_CXX0X__ -# define FMT_HAS_GXX_CXX11 1 -# endif -# else -# define FMT_HAS_GXX_CXX11 0 +#else +# define FMT_GCC_VERSION 0 +#endif + +#if __cplusplus >= 201103L || defined __GXX_EXPERIMENTAL_CXX0X__ +# define FMT_HAS_GXX_CXX11 FMT_GCC_VERSION +#else +# define FMT_HAS_GXX_CXX11 0 #endif #ifdef _MSC_VER