diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-24 15:12:50 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-24 15:12:50 +0000 |
commit | 38f3981a99073a0b6a491a0d3d3d2b87ba819c31 (patch) | |
tree | 0cd30b9f34885248b0bbe264f582556791850bd7 /clang/lib/Headers/unwind.h | |
parent | a0d01ff56728c08f8493fbf804be67cf7da0a55c (diff) | |
download | bcm5719-llvm-38f3981a99073a0b6a491a0d3d3d2b87ba819c31.tar.gz bcm5719-llvm-38f3981a99073a0b6a491a0d3d3d2b87ba819c31.zip |
On Darwin, use the system's <unwind.h> whenever it is
available. Clang's <unwind.h> isn't ready for prime time. Fixes
<rdar://problem/10733587>.
llvm-svn: 148807
Diffstat (limited to 'clang/lib/Headers/unwind.h')
-rw-r--r-- | clang/lib/Headers/unwind.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Headers/unwind.h b/clang/lib/Headers/unwind.h index cef20cc2147..28ad8043f2a 100644 --- a/clang/lib/Headers/unwind.h +++ b/clang/lib/Headers/unwind.h @@ -23,10 +23,9 @@ /* See "Data Definitions for libgcc_s" in the Linux Standard Base.*/ -#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \ - __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070 -/* Starting in OS X Lion the SDK includes a unwind.h. We should just use it. */ -#include_next <unwind.h> +#if defined(__APPLE__) && __has_include_next(<unwind.h>) +/* Darwin typically has its own unwind.h; use it. */ +# include_next <unwind.h> #else #include <stdint.h> |