summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macosx/ARCBridge.h2
-rwxr-xr-xmacosx/PluginList.m2
2 files changed, 3 insertions, 1 deletions
diff --git a/macosx/ARCBridge.h b/macosx/ARCBridge.h
index 3365a467..5a747bdd 100644
--- a/macosx/ARCBridge.h
+++ b/macosx/ARCBridge.h
@@ -17,6 +17,7 @@
#define AUTORELEASEOBJ(obj) obj
#define AUTORELEASEOBJNORETURN(obj)
#define BRIDGE(toType, obj) (__bridge toType)(obj)
+#define __arcweak __weak
#else
@@ -26,6 +27,7 @@
#define AUTORELEASEOBJ(obj) [obj autorelease]
#define AUTORELEASEOBJNORETURN(obj) [obj autorelease]
#define BRIDGE(toType, obj) (toType)obj
+#define __arcweak
#endif
diff --git a/macosx/PluginList.m b/macosx/PluginList.m
index 876488eb..9f2a7460 100755
--- a/macosx/PluginList.m
+++ b/macosx/PluginList.m
@@ -14,7 +14,7 @@
#import "ARCBridge.h"
//NSMutableArray *plugins;
-static PluginList __weak *sPluginList = nil;
+static PluginList __arcweak *sPluginList = nil;
const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD, PSE_LT_NET};
@implementation PluginList