summaryrefslogtreecommitdiff
path: root/objc_darwin.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-01 17:01:28 -0500
committerPietro Gagliardi <[email protected]>2014-03-01 17:01:28 -0500
commit56eb64429d64a7948ce8c40e823710a9ece876ec (patch)
tree123ce47499151dd81065bf61871c395db2c589e5 /objc_darwin.h
parent9b4e30ccf9b1a1dc6367b0e6950fdd74cde88922 (diff)
Fixed most errors. Now I just need to add a sysData pool.
Diffstat (limited to 'objc_darwin.h')
-rw-r--r--objc_darwin.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/objc_darwin.h b/objc_darwin.h
index 173f238..1c960d5 100644
--- a/objc_darwin.h
+++ b/objc_darwin.h
@@ -10,12 +10,19 @@ Furthermore, Objective-C selectors work by basically sending the arguments to ob
The format should be self-explanatory.
*/
+/* for some reason I now have to use an include guard after commit [master 9b4e30c] ("Started to build a single global delegate object; now to fix issues.") */
+#ifndef _OBJC_DARWIN_H_
+#define _OBJC_DARWIN_H_
+
#include <objc/message.h>
#include <objc/objc.h>
#include <objc/runtime.h>
#include <stdint.h>
+/* for delegate_darwin.go */
+extern Class NilClass;
+
inline id objc_msgSend_noargs(id obj, SEL sel)
{
return objc_msgSend(obj, sel);
@@ -77,3 +84,5 @@ m3(sel_id_bool, SEL, id, BOOL)
extern id _objc_msgSend_rect_uint_uint_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, uintptr_t b, uintptr_t c, BOOL d);
m4(id_sel_id_id, id, SEL, id, id)
+
+#endif