Move FMT_HAS_BUILTIN to format.h

This commit is contained in:
Victor Zverovich 2017-12-09 08:56:44 -08:00
parent ce801c9095
commit 61f296e30c
2 changed files with 6 additions and 6 deletions

View File

@ -39,12 +39,6 @@
# define FMT_HAS_FEATURE(x) 0 # define FMT_HAS_FEATURE(x) 0
#endif #endif
#ifdef __has_builtin
# define FMT_HAS_BUILTIN(x) __has_builtin(x)
#else
# define FMT_HAS_BUILTIN(x) 0
#endif
#ifdef __GNUC__ #ifdef __GNUC__
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) # define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
#endif #endif

View File

@ -48,6 +48,12 @@
# include <iterator> # include <iterator>
#endif #endif
#ifdef __has_builtin
# define FMT_HAS_BUILTIN(x) __has_builtin(x)
#else
# define FMT_HAS_BUILTIN(x) 0
#endif
#ifdef __GNUC__ #ifdef __GNUC__
# if FMT_GCC_VERSION >= 406 # if FMT_GCC_VERSION >= 406
# pragma GCC diagnostic push # pragma GCC diagnostic push