summaryrefslogtreecommitdiff
path: root/Objective-C/objc-runtime-apple.h
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2007-09-15 14:03:32 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2007-09-15 14:03:32 +0200
commitd0dd29fcf87b51280dd5c2685063ea42cf4fc115 (patch)
tree6492eb0477db2e07978554e4b865f9a812de252b /Objective-C/objc-runtime-apple.h
parent63a0b732f2f8f7acc054ab4a9d2eb3fa121b1a95 (diff)
Make the code copied from PyObjC compilable stand-alone.
darcs-hash:6a1f1865b6259fc5a7551ffb10494f914359ecc6
Diffstat (limited to 'Objective-C/objc-runtime-apple.h')
-rw-r--r--Objective-C/objc-runtime-apple.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Objective-C/objc-runtime-apple.h b/Objective-C/objc-runtime-apple.h
index fb15b27..8d050a1 100644
--- a/Objective-C/objc-runtime-apple.h
+++ b/Objective-C/objc-runtime-apple.h
@@ -24,6 +24,11 @@
#include <objc/objc-runtime.h>
#include <objc/Protocol.h>
+#include <string.h>
+#include <stdlib.h>
+#include <assert.h>
+#include <ctype.h>
+
static inline int
PyObjCRT_SameSEL(SEL a, SEL b)
{
@@ -70,8 +75,8 @@ PyObjCRT_ClassAddMethodList(Class cls, struct objc_method_list* lst)
}
-extern struct objc_method_list* PyObjCRT_AllocMethodList(Py_ssize_t);
-extern struct objc_protocol_list* PyObjCRT_AllocProtocolList(Py_ssize_t);
+extern struct objc_method_list* PyObjCRT_AllocMethodList(ssize_t);
+extern struct objc_protocol_list* PyObjCRT_AllocProtocolList(ssize_t);
typedef Method PyObjCRT_Method_t;
typedef Ivar PyObjCRT_Ivar_t;