summaryrefslogtreecommitdiffstats
path: root/libcxx/src/stdexcept.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-09-03 18:13:11 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-09-03 18:13:11 +0000
commit49713b442caa62154b53335b85810f9209da63c8 (patch)
treeb9cfd0a6d63e73b22cbbaf3d5ffafa747e568799 /libcxx/src/stdexcept.cpp
parentc38826ccf3fe926bac84758d773852617bcb532a (diff)
downloadbcm5719-llvm-49713b442caa62154b53335b85810f9209da63c8.tar.gz
bcm5719-llvm-49713b442caa62154b53335b85810f9209da63c8.zip
Some minor mingw64 porting tweaks from Glen.
llvm-svn: 163120
Diffstat (limited to 'libcxx/src/stdexcept.cpp')
-rw-r--r--libcxx/src/stdexcept.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/libcxx/src/stdexcept.cpp b/libcxx/src/stdexcept.cpp
index 5f4d6b52a4d..660ebfe2735 100644
--- a/libcxx/src/stdexcept.cpp
+++ b/libcxx/src/stdexcept.cpp
@@ -16,8 +16,13 @@
#include <cstddef>
#include "system_error"
-// Use <cxxabi.h> to determine whether we're linking against libc++abi.
-#if __has_include(<cxxabi.h>)
+#ifndef __has_include
+#define __has_include(inc) 0
+#endif
+
+#if __APPLE__
+#include <cxxabi.h>
+#elif defined(LIBCXXRT) || __has_include(<cxxabi.h>)
#include <cxxabi.h>
#endif
OpenPOWER on IntegriCloud