summaryrefslogtreecommitdiff
path: root/Objective-C/PyObjC
diff options
context:
space:
mode:
Diffstat (limited to 'Objective-C/PyObjC')
-rw-r--r--Objective-C/PyObjC/objc-runtime-compat.h4
-rw-r--r--Objective-C/PyObjC/objc-runtime-compat.m4
2 files changed, 8 insertions, 0 deletions
diff --git a/Objective-C/PyObjC/objc-runtime-compat.h b/Objective-C/PyObjC/objc-runtime-compat.h
index 3823f1f..39c697e 100644
--- a/Objective-C/PyObjC/objc-runtime-compat.h
+++ b/Objective-C/PyObjC/objc-runtime-compat.h
@@ -1,3 +1,6 @@
+/* This file is part of the PyObjC package. */
+#ifdef __NEXT_RUNTIME__
+
#ifndef PyObjC_RUNTIME_COMPAT
#define PyObjC_RUNTIME_COMPAT
/*
@@ -196,3 +199,4 @@ extern size_t PyObjC_methodlist_magic(Class cls);
#endif /* PyObjC_RUNTIME_COMPAT */
+#endif /* __NEXT_RUNTIME__ */
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__ */