summaryrefslogtreecommitdiff
path: root/Menes
diff options
context:
space:
mode:
Diffstat (limited to 'Menes')
-rw-r--r--Menes/ObjectHandle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Menes/ObjectHandle.h b/Menes/ObjectHandle.h
index 9b8d57d..727338b 100644
--- a/Menes/ObjectHandle.h
+++ b/Menes/ObjectHandle.h
@@ -128,4 +128,8 @@ rproperty_(Class, field) \
wproperty_(Class, field, Field) \
@end
+// XXX: I hate clang. Apple: please get over your petty hatred of GPL and fix your gcc fork
+#define synchronized(lock) \
+ synchronized(static_cast<NSObject *>(lock))
+
#endif//Menes_ObjectHandle_H