[libc++] Fix GCC 7.2.0 macro redefinition warning
The warning happens when LIBCXX_ENABLE_EXCEPTIONS cmake option is not set, and it fires every time __config is included, 33 in total. Patch by Jason Lovett Reviewed as https://reviews.llvm.org/D49997 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@338531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -510,7 +510,7 @@ namespace std {
|
||||
#define _LIBCPP_HAS_IS_BASE_OF
|
||||
#endif
|
||||
|
||||
#if !__EXCEPTIONS
|
||||
#if !__EXCEPTIONS && !defined(_LIBCPP_NO_EXCEPTIONS)
|
||||
#define _LIBCPP_NO_EXCEPTIONS
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user