From 61f296e30c115c61548c9fb483d16b50f864510b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 9 Dec 2017 08:56:44 -0800 Subject: [PATCH] Move FMT_HAS_BUILTIN to format.h --- include/fmt/core.h | 6 ------ include/fmt/format.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 84f878de..ed4bc45a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -39,12 +39,6 @@ # 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 - #ifdef __GNUC__ # define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) #endif diff --git a/include/fmt/format.h b/include/fmt/format.h index 05cfaebd..8be5f0e8 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -48,6 +48,12 @@ # include #endif +#ifdef __has_builtin +# define FMT_HAS_BUILTIN(x) __has_builtin(x) +#else +# define FMT_HAS_BUILTIN(x) 0 +#endif + #ifdef __GNUC__ # if FMT_GCC_VERSION >= 406 # pragma GCC diagnostic push