From 08d4e5040f6a0c3fa169d258527dd82a17d3fdae Mon Sep 17 00:00:00 2001 From: Alexey Morozov Date: Wed, 11 Jun 2014 15:30:57 +0700 Subject: [PATCH] GCC may have support for __has_feature but doesn't support __has_builtin So perform these checks separately --- format.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/format.h b/format.h index 42b0e65f..b184bde4 100644 --- a/format.h +++ b/format.h @@ -61,9 +61,13 @@ // Compatibility with compilers other than clang. #ifdef __has_feature # define FMT_HAS_FEATURE(x) __has_feature(x) -# define FMT_HAS_BUILTIN(x) __has_builtin(x) #else # define FMT_HAS_FEATURE(x) 0 +#endif + +# ifdef __has_builtin +# define FMT_HAS_BUILTIN(x) __has_builtin(x) +#else # define FMT_HAS_BUILTIN(x) 0 #endif