[libcxx] r302099 - Fix macro redefinition warnings for _LIBCPP_NO_RTTI
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed May 3 18:06:55 PDT 2017
Author: ericwf
Date: Wed May 3 20:06:54 2017
New Revision: 302099
URL: http://llvm.org/viewvc/llvm-project?rev=302099&view=rev
Log:
Fix macro redefinition warnings for _LIBCPP_NO_RTTI
Modified:
libcxx/trunk/include/__config
Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=302099&r1=302098&r2=302099&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Wed May 3 20:06:54 2017
@@ -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
More information about the cfe-commits
mailing list