From ca57b1475e164028442c8c44bc1c02ee042b402d Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 4 May 2017 01:06:54 +0000 Subject: [PATCH] Fix macro redefinition warnings for _LIBCPP_NO_RTTI git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@302099 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/__config b/include/__config index ee4686049..598015c7f 100644 --- a/include/__config +++ b/include/__config @@ -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