File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 9
9
// ===----------------------------------------------------------------------===//
10
10
11
11
#ifdef min
12
- #warning : macro min is incompatible with C++. #undef'ing min
12
+ #warning : macro min is incompatible with C++. #undefing min
13
13
#undef min
14
14
#endif
15
15
16
16
#ifdef max
17
- #warning : macro max is incompatible with C++. #undef'ing max
17
+ #warning : macro max is incompatible with C++. #undefing max
18
18
#undef max
19
19
#endif
Original file line number Diff line number Diff line change 16
16
#include < cstddef>
17
17
#include " system_error"
18
18
19
- // Use <cxxabi.h> to determine whether we're linking against libc++abi.
20
- #if __has_include(<cxxabi.h>)
19
+ #ifndef __has_include
20
+ #define __has_include (inc ) 0
21
+ #endif
22
+
23
+ #if __APPLE__
24
+ #include < cxxabi.h>
25
+ #elif defined(LIBCXXRT) || __has_include(<cxxabi.h>)
21
26
#include < cxxabi.h>
22
27
#endif
23
28
You can’t perform that action at this time.
0 commit comments