diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-09-03 18:13:11 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-09-03 18:13:11 +0000 |
commit | 49713b442caa62154b53335b85810f9209da63c8 (patch) | |
tree | b9cfd0a6d63e73b22cbbaf3d5ffafa747e568799 /libcxx | |
parent | c38826ccf3fe926bac84758d773852617bcb532a (diff) | |
download | bcm5719-llvm-49713b442caa62154b53335b85810f9209da63c8.tar.gz bcm5719-llvm-49713b442caa62154b53335b85810f9209da63c8.zip |
Some minor mingw64 porting tweaks from Glen.
llvm-svn: 163120
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/include/__undef_min_max | 4 | ||||
-rw-r--r-- | libcxx/src/stdexcept.cpp | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/libcxx/include/__undef_min_max b/libcxx/include/__undef_min_max index 88bc53feaaf..b1e80d1b049 100644 --- a/libcxx/include/__undef_min_max +++ b/libcxx/include/__undef_min_max @@ -9,11 +9,11 @@ //===----------------------------------------------------------------------===// #ifdef min -#warning: macro min is incompatible with C++. #undef'ing min +#warning: macro min is incompatible with C++. #undefing min #undef min #endif #ifdef max -#warning: macro max is incompatible with C++. #undef'ing max +#warning: macro max is incompatible with C++. #undefing max #undef max #endif 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 |