aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2012-01-03 19:22:38 +0000
committerJoerg Sonnenberger <joerg@bec.de>2012-01-03 19:22:38 +0000
commitf84d560fc73c9177af9081a0edf6726e43ec3a63 (patch)
tree253e6c7a7f45df840a20b04a655c594a1c38c046
parente23dcf3524fe01208cc79e707412f0a5dd8eed7b (diff)
Don't depend on undefined macros being 0, there are options for the
preprocessor to warn about it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147466 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Headers/unwind.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Headers/unwind.h b/lib/Headers/unwind.h
index 66ede93e6b..773f3e8093 100644
--- a/lib/Headers/unwind.h
+++ b/lib/Headers/unwind.h
@@ -23,7 +23,8 @@
/* See "Data Definitions for libgcc_s" in the Linux Standard Base.*/
-#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070
+#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>
#else