mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
GCC may have support for __has_feature but doesn't support __has_builtin
So perform these checks separately
This commit is contained in:
parent
f0bcc0b1c0
commit
08d4e5040f
6
format.h
6
format.h
@ -61,9 +61,13 @@
|
|||||||
// Compatibility with compilers other than clang.
|
// Compatibility with compilers other than clang.
|
||||||
#ifdef __has_feature
|
#ifdef __has_feature
|
||||||
# define FMT_HAS_FEATURE(x) __has_feature(x)
|
# define FMT_HAS_FEATURE(x) __has_feature(x)
|
||||||
# define FMT_HAS_BUILTIN(x) __has_builtin(x)
|
|
||||||
#else
|
#else
|
||||||
# define FMT_HAS_FEATURE(x) 0
|
# 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
|
# define FMT_HAS_BUILTIN(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user