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