Merge pull request #46 from amorozov/bug/45

GCC may have support for __has_feature but doesn't support __has_builtin
This commit is contained in:
vitaut 2014-06-11 05:49:26 -07:00
commit dc440dd19d

View File

@ -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