diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-01-28 17:14:08 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-01-28 17:14:08 +0000 |
| commit | 144a5bfda702e8e71f38313e7d8d381dff868203 (patch) | |
| tree | c9c37dfaf3aa3b213e61e0c274670fb47c11d312 | |
| parent | 6e2f3f0721263cfdd3c8f866b9cf3cb693b2f8ac (diff) | |
| download | pcsxr-144a5bfda702e8e71f38313e7d8d381dff868203.tar.gz | |
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
| -rw-r--r-- | macosx/ARCBridge.h | 2 | ||||
| -rwxr-xr-x | macosx/PluginList.m | 2 |
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 |
