summaryrefslogtreecommitdiff
path: root/Objective-C/PyObjC/objc-runtime-compat.m
diff options
context:
space:
mode:
Diffstat (limited to 'Objective-C/PyObjC/objc-runtime-compat.m')
-rw-r--r--Objective-C/PyObjC/objc-runtime-compat.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objective-C/PyObjC/objc-runtime-compat.m b/Objective-C/PyObjC/objc-runtime-compat.m
index 036b1a1..0143f6a 100644
--- a/Objective-C/PyObjC/objc-runtime-compat.m
+++ b/Objective-C/PyObjC/objc-runtime-compat.m
@@ -1,10 +1,13 @@
+/* This file is part of the PyObjC package. */
/*
* Objective-C runtime 2.0 compatibility for MacOS X 10.4 and earlier.
*
* This code works by poking into the ObjC runtime, which means loads of
* warnings on 10.5+ ;-)
*/
+#ifdef __NEXT_RUNTIME__
#include "pyobjc.h"
+#include "objc-runtime-compat.h"
BOOL PyObjC_class_isSubclassOf(Class child, Class parent)
{
@@ -985,3 +988,4 @@ size_t PyObjC_methodlist_magic(Class cls)
#endif
+#endif /* __NEXT_RUNTIME__ */