A better option would probably be to remove the call to plat_init from cr_plugin_load and instead of have the library's user call plat_init once from their initialization function (main/WinMain/whatever), but I didn't want to suggest a breaking change to the API like that.
A better option would probably be to remove the call to plat_init from cr_plugin_load and instead of have the library's user call plat_init once from their initialization function (main/WinMain/whatever), but I didn't want to suggest a breaking change to the API like that.