mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-05-19 12:08:58 -05:00
8042aa39bf
fix possible ODR - multiple classes with same name in different .cpp files
14 lines
231 B
Plaintext
14 lines
231 B
Plaintext
#include <hex/helpers/logger.hpp>
|
|
|
|
extern "C" void forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
|
|
|
|
namespace {
|
|
struct StaticLoad {
|
|
StaticLoad() {
|
|
forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
|
|
}
|
|
};
|
|
}
|
|
|
|
static StaticLoad staticLoad;
|