@@ -47,10 +47,14 @@ } alloc_failed_exception; #ifdef NEED_OBJC_SYNC_INIT extern BOOL objc_sync_init(); #endif + +#ifdef NEED_OBJC_PROPERTIES_INIT +extern BOOL objc_properties_init(); +#endif static void enumeration_mutation_handler(id obj) { @throw [OFEnumerationMutationException newWithClass: [obj class]]; @@ -71,10 +75,18 @@ if (!objc_sync_init()) { fputs("Runtime error: objc_sync_init() failed!\n", stderr); abort(); } #endif + +#ifdef NEED_OBJC_PROPERTIES_INIT + if (!objc_properties_init()) { + fputs("Runtime error: objc_properties_init() failed!\n", + stderr); + abort(); + } +#endif #ifdef OF_APPLE_RUNTIME objc_setEnumerationMutationHandler(enumeration_mutation_handler); #endif }