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.h | 4 ++++ Objective-C/PyObjC/objc-runtime-compat.m | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'Objective-C') 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__ */ -- cgit v1.2.3