mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: ODR issues in plugin bundle generation (#1486)
fix possible ODR - multiple classes with same name in different .cpp files
This commit is contained in:
committed by
GitHub
parent
409b3ccd6c
commit
8042aa39bf
4
dist/web/plugin-bundle.cpp.in
vendored
4
dist/web/plugin-bundle.cpp.in
vendored
@@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
extern "C" void forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
|
extern "C" void forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
|
||||||
|
|
||||||
|
namespace {
|
||||||
struct StaticLoad {
|
struct StaticLoad {
|
||||||
StaticLoad() {
|
StaticLoad() {
|
||||||
forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
|
forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
static StaticLoad staticLoad;
|
static StaticLoad staticLoad;
|
||||||
|
|||||||
Reference in New Issue
Block a user