summaryrefslogtreecommitdiff
path: root/macosx/ARCBridge.h
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-01-28 17:14:08 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-01-28 17:14:08 +0000
commit144a5bfda702e8e71f38313e7d8d381dff868203 (patch)
treec9c37dfaf3aa3b213e61e0c274670fb47c11d312 /macosx/ARCBridge.h
parent6e2f3f0721263cfdd3c8f866b9cf3cb693b2f8ac (diff)
downloadpcsxr-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
Diffstat (limited to 'macosx/ARCBridge.h')
-rw-r--r--macosx/ARCBridge.h2
1 files changed, 2 insertions, 0 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