diff options
| author | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-28 20:30:59 +0100 | 
|---|---|---|
| committer | Matthias Benkard <code@mail.matthias.benkard.de> | 2008-01-28 20:30:59 +0100 | 
| commit | 841238d99ecf337569ebf00ad6de4ab500e75f59 (patch) | |
| tree | 7472cb43fd6571d56d4a2686c9e34f3d4109ffca /Objective-C | |
| parent | f18bd561556ce01b6f4c19244daf47e6acd0b47d (diff) | |
Add NeXT runtime guards to the files imported from PyObjC.
darcs-hash:595b0013f39b2ed75555c1632ac31a1c33b3f08f
Diffstat (limited to 'Objective-C')
| -rw-r--r-- | Objective-C/PyObjC/objc-runtime-compat.h | 4 | ||||
| -rw-r--r-- | Objective-C/PyObjC/objc-runtime-compat.m | 4 | 
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__ */ | 
