[cfe-commits] r147466 - /cfe/trunk/lib/Headers/unwind.h
Joerg Sonnenberger
joerg at bec.de
Tue Jan 3 11:22:38 PST 2012
Author: joerg
Date: Tue Jan 3 13:22:38 2012
New Revision: 147466
URL: http://llvm.org/viewvc/llvm-project?rev=147466&view=rev
Log:
Don't depend on undefined macros being 0, there are options for the
preprocessor to warn about it.
Modified:
cfe/trunk/lib/Headers/unwind.h
Modified: cfe/trunk/lib/Headers/unwind.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/unwind.h?rev=147466&r1=147465&r2=147466&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/unwind.h (original)
+++ cfe/trunk/lib/Headers/unwind.h Tue Jan 3 13:22:38 2012
@@ -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
More information about the cfe-commits
mailing list