From 49713b442caa62154b53335b85810f9209da63c8 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 3 Sep 2012 18:13:11 +0000 Subject: Some minor mingw64 porting tweaks from Glen. llvm-svn: 163120 --- libcxx/src/stdexcept.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libcxx/src/stdexcept.cpp') 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 #include "system_error" -// Use to determine whether we're linking against libc++abi. -#if __has_include() +#ifndef __has_include +#define __has_include(inc) 0 +#endif + +#if __APPLE__ +#include +#elif defined(LIBCXXRT) || __has_include() #include #endif -- cgit v1.2.3