From 841238d99ecf337569ebf00ad6de4ab500e75f59 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 28 Jan 2008 20:30:59 +0100 Subject: Add NeXT runtime guards to the files imported from PyObjC. darcs-hash:595b0013f39b2ed75555c1632ac31a1c33b3f08f --- Objective-C/PyObjC/objc-runtime-compat.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Objective-C/PyObjC/objc-runtime-compat.m') 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__ */ -- cgit v1.2.3