From 3cb35daab7776a31116deda1bda0c89b3f3377b1 Mon Sep 17 00:00:00 2001 From: jules Date: Sat, 23 Mar 2013 14:16:03 +0000 Subject: [PATCH] JUCE_AUTORELEASEPOOL fix. --- modules/juce_core/memory/juce_Memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/memory/juce_Memory.h b/modules/juce_core/memory/juce_Memory.h index f88fdd8219..e1de06200f 100644 --- a/modules/juce_core/memory/juce_Memory.h +++ b/modules/juce_core/memory/juce_Memory.h @@ -84,7 +84,7 @@ inline Type* createCopyIfNotNull (const Type* pointer) { return pointer != n Because this may use the @autoreleasepool syntax, you must follow the macro with a set of braces to mark the scope of the pool. */ -#if JUCE_COMPILER_SUPPORTS_ARC || DOXYGEN +#if (JUCE_COMPILER_SUPPORTS_ARC && defined (__OBJC__)) || DOXYGEN #define JUCE_AUTORELEASEPOOL @autoreleasepool #else #define JUCE_AUTORELEASEPOOL const juce::ScopedAutoReleasePool JUCE_JOIN_MACRO (autoReleasePool_, __LINE__);