mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-14 12:40:32 +00:00
Merge pull request #228 from dean0x7d/fix_warning
Fix static_assert feature detection on clang
This commit is contained in:
commit
3df9bf3a91
2
posix.h
2
posix.h
@ -73,7 +73,7 @@
|
||||
# define FMT_USE_STATIC_ASSERT 0
|
||||
#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
|
||||
# define FMT_STATIC_ASSERT(cond, message) static_assert(cond, message)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user