diff --git a/dist/web/plugin-bundle.cpp.in b/dist/web/plugin-bundle.cpp.in index 1e6fc7d52..7471deed9 100644 --- a/dist/web/plugin-bundle.cpp.in +++ b/dist/web/plugin-bundle.cpp.in @@ -2,10 +2,12 @@ extern "C" void forceLinkPlugin_@IMHEX_PLUGIN_NAME@(); +namespace { struct StaticLoad { StaticLoad() { forceLinkPlugin_@IMHEX_PLUGIN_NAME@(); } }; +} -static StaticLoad staticLoad; \ No newline at end of file +static StaticLoad staticLoad;