@@ -15,12 +15,20 @@ */ #ifndef __OBJFW_RUNTIME_H__ #define __OBJFW_RUNTIME_H__ -#include +#ifndef __STDC_LIMIT_MACROS +# define __STDC_LIMIT_MACROS +#endif +#ifndef __STDC_CONSTANT_MACROS +# define __STDC_CONSTANT_MACROS +#endif + #include +#include +#include #ifndef __has_feature # define __has_feature(x) 0 #endif @@ -191,10 +199,12 @@ extern "C" { #endif extern SEL sel_registerName(const char*); extern const char* sel_getName(SEL); extern bool sel_isEqual(SEL, SEL); +extern Class objc_allocateClassPair(Class, const char*, size_t); +extern void objc_registerClassPair(Class); extern id objc_lookUpClass(const char*); extern id objc_getClass(const char*); extern id objc_getRequiredClass(const char*); extern unsigned int objc_getClassList(Class*, unsigned int); extern Class* objc_copyClassList(unsigned int*);