Fix macro redefinition warnings for _LIBCPP_NO_RTTI
authorEric Fiselier <eric@efcs.ca>
Thu, 4 May 2017 01:06:54 +0000 (01:06 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 4 May 2017 01:06:54 +0000 (01:06 +0000)
llvm-svn: 302099

libcxx/include/__config

index ee46860..598015c 100644 (file)
@@ -314,7 +314,7 @@ typedef __char32_t char32_t;
 #define _LIBCPP_NO_EXCEPTIONS
 #endif
 
-#if !(__has_feature(cxx_rtti))
+#if !(__has_feature(cxx_rtti)) && !defined(_LIBCPP_NO_RTTI)
 #define _LIBCPP_NO_RTTI
 #endif