summaryrefslogtreecommitdiff
path: root/src/stdexcept.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <theraven@FreeBSD.org>2012-05-03 16:04:02 +0000
committerDavid Chisnall <theraven@FreeBSD.org>2012-05-03 16:04:02 +0000
commit43cd7615798ea22556f20bbd64cff1e0c691e1d0 (patch)
tree856ce4e42da23163e4316bca6732710e898f0265 /src/stdexcept.cpp
parentacbeab898d6a7f4036c55962a2460aab3e0eda3f (diff)
Diffstat (limited to 'src/stdexcept.cpp')
-rw-r--r--src/stdexcept.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stdexcept.cpp b/src/stdexcept.cpp
index b516b0ca68b34..9fa4f593137a2 100644
--- a/src/stdexcept.cpp
+++ b/src/stdexcept.cpp
@@ -15,7 +15,11 @@
#include <cstdint>
#include <cstddef>
#include "system_error"
+
+// Use <cxxabi.h> to determine whether we're linking against libc++abi.
+#if __has_include(<cxxabi.h>)
#include <cxxabi.h>
+#endif
// Note: optimize for size