diff --git a/libcxxabi/src/Unwind/config.h b/libcxxabi/src/Unwind/config.h index 2b92464117bc..7d7e6bf0b7cd 100644 --- a/libcxxabi/src/Unwind/config.h +++ b/libcxxabi/src/Unwind/config.h @@ -20,7 +20,7 @@ #ifndef __has_feature #define __has_feature(__x) 0 #endif -#if !(__has_feature(cxx_static_assert)) +#if !(__has_feature(cxx_static_assert)) && !defined(static_assert) #define static_assert(__b, __m) \ extern int compile_time_assert_failed[ ( __b ) ? 1 : -1 ] \ __attribute__( ( unused ) );