From a31907dc709e9f286b58bcf84d74fa3a8e8095d1 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 2 Apr 2013 07:10:46 -0700 Subject: [PATCH] OS X: Workaround weird problem in OS X 10.6 with defines. Apparently !defined(__MAC_10_6) doesn't work? --- Common/StdMutex.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Common/StdMutex.h b/Common/StdMutex.h index 2ec9322021..d3410e70a1 100644 --- a/Common/StdMutex.h +++ b/Common/StdMutex.h @@ -5,9 +5,10 @@ #define GCC_VER(x,y,z) ((x) * 10000 + (y) * 100 + (z)) #define GCC_VERSION GCC_VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) -#if (GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ || defined(__APPLE__)) \ +// Note: __MAC_10_7 is defined on 10.7+. +#if (GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ || defined(__MAC_10_7)) \ /* GCC 4.4 provides , except on these platforms: */ \ - && !defined(ANDROID) && !defined(__SYMBIAN32__) && !defined(IOS) && !defined(__MAC_10_6) + && !defined(ANDROID) && !defined(__SYMBIAN32__) && !defined(IOS) #include #else