Don't redefine static_assert()

llvm-svn: 199860
This commit is contained in:
Nick Kledzik 2014-01-23 02:08:14 +00:00
parent fd0a6cf17a
commit a625495cb8

View File

@ -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 ) );