@@ -18,16 +18,26 @@ #include "config.h" #include #include -#import "ObjFWRT.h" -#import "private.h" +#ifdef OF_OBJFW_RUNTIME +# import "ObjFWRT.h" +# import "private.h" +#else +# import +#endif #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) # import "tlskey.h" #endif + +#ifndef OF_OBJFW_RUNTIME +@interface DummyObject +- (void)release; +@end +#endif #if defined(OF_HAVE_COMPILER_TLS) static thread_local id *objects = NULL; static thread_local uintptr_t count = 0; static thread_local uintptr_t size = 0;