mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Fix static_assert feature detection on clang
This commit is contained in:
parent
ef5e5e02b4
commit
7d94b5bbeb
2
posix.h
2
posix.h
@ -73,7 +73,7 @@
|
|||||||
# define FMT_USE_STATIC_ASSERT 0
|
# define FMT_USE_STATIC_ASSERT 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FMT_USE_STATIC_ASSERT || FMT_HAS_CPP_ATTRIBUTE(cxx_static_assert) || \
|
#if FMT_USE_STATIC_ASSERT || FMT_HAS_FEATURE(cxx_static_assert) || \
|
||||||
(FMT_GCC_VERSION >= 403 && FMT_HAS_GXX_CXX11) || _MSC_VER >= 1600
|
(FMT_GCC_VERSION >= 403 && FMT_HAS_GXX_CXX11) || _MSC_VER >= 1600
|
||||||
# define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message)
|
# define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message)
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user