From 144a5bfda702e8e71f38313e7d8d381dff868203 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Mon, 28 Jan 2013 17:14:08 +0000 Subject: The weak directive is useless in non-ARC code. comment it out when not using ARC code. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82567 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/ARCBridge.h | 2 ++ macosx/PluginList.m | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3