Remove a long-standing __has_include hack.

This was put in to get libc++ building without libcxxabi. We now have
macros that show that we are building against libcxxabi so use that
instead. This guards against existing but broken cxxabi.h headers on the
system.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@250507 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2015-10-16 11:14:30 +00:00
parent 1d3716a633
commit 99290c6ec8
4 changed files with 8 additions and 25 deletions

View File

@@ -13,12 +13,8 @@
#include "string"
#include "system_error"
#ifndef __has_include
#define __has_include(inc) 0
#endif
/* For _LIBCPPABI_VERSION */
#if __has_include(<cxxabi.h>) || defined(__APPLE_) || defined(LIBCXXRT)
#if defined(LIBCXX_BUILDING_LIBCXXABI) || defined(__APPLE_) || defined(LIBCXXRT)
#include <cxxabi.h>
#endif