diff --git a/src/exception.cpp b/src/exception.cpp index 3ce6f2e1..b5c46c08 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -16,7 +16,7 @@ #define __has_include(inc) 0 #endif -#ifdef __APPLE__ +#if defined(__APPLE__) && !defined(LIBCXXRT) #include using namespace __cxxabiv1; diff --git a/src/new.cpp b/src/new.cpp index 2b37601c..a88d4cc7 100644 --- a/src/new.cpp +++ b/src/new.cpp @@ -17,7 +17,7 @@ #define __has_include(inc) 0 #endif -#ifdef __APPLE__ +#if defined(__APPLE__) && !defined(LIBCXXRT) #include #ifndef _LIBCPPABI_VERSION