From 7d94b5bbeb12b4940d965d92bf651c7072626e40 Mon Sep 17 00:00:00 2001 From: Dean Moldovan Date: Sat, 31 Oct 2015 20:07:47 +0100 Subject: [PATCH] Fix static_assert feature detection on clang --- posix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posix.h b/posix.h index 784421036665..88bcb4f557bb 100644 --- a/posix.h +++ b/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