summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-01 19:17:07 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-01 19:18:38 +0300
commit81ad1147360d9a3ff339671ebe15acde8a6b7c67 (patch)
tree3ee0dbf8726b71bd747b31a0f5683f9a3665e5ff
parente3dad060929de9beeeed2978f1b1427a91152073 (diff)
WaE: 'MAC_OS_X_VERSION_MAX_ALLOWED' is not defined, evaluates to 0
(When compiling for iOS.) Change-Id: I9f9f5b122c1bfac4ff670a4302fb10b6b82685ac
-rw-r--r--sal/osl/unx/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/memory.c b/sal/osl/unx/memory.c
index bde2fac83273..f31c28c88291 100644
--- a/sal/osl/unx/memory.c
+++ b/sal/osl/unx/memory.c
@@ -41,7 +41,7 @@ void* osl_aligned_alloc( sal_Size align, sal_Size size )
void osl_aligned_free( void* p )
{
-#if defined __APPLE__ && MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+#if defined MAC_OS_X_VERSION_MAX_ALLOWED && MAC_OS_X_VERSION_MAX_ALLOWED < 1060
free(((void**)p)[-1]);
#else
free(p);