@@ -26,16 +26,16 @@ if (class == Nil) /* * musl has broken dlclose(): Instead of calling the destructor * on dlclose(), they call it on exit(). This of course means - * that our tests might have already called objc_exit() and the - * class is already gone. + * that our tests might have already called objc_deinit() and + * the class is already gone. */ return; - objc_unregister_class(class); + objc_unregisterClass(class); } #endif @implementation TestPlugin - (int)test: (int)num @@ -43,9 +43,9 @@ return num * 2; } @end id -init_plugin(void) +OFPluginInit(void) { return [[[TestPlugin alloc] init] autorelease]; }