diff --git a/src/common/config/ConfigLoader.cpp b/src/common/config/ConfigLoader.cpp index 7124d121a..26742e5f2 100644 --- a/src/common/config/ConfigLoader.cpp +++ b/src/common/config/ConfigLoader.cpp @@ -47,13 +47,17 @@ #include "common/interfaces/IConfig.h" #include "common/Platform.h" #include "core/ConfigCreator.h" -#include "core/ConfigLoader_default.h" #include "core/ConfigLoader_platform.h" #include "rapidjson/document.h" #include "rapidjson/error/en.h" #include "rapidjson/fwd.h" +#ifdef XMRIG_FEATURE_EMBEDDED_CONFIG +# include "core/ConfigLoader_default.h" +#endif + + xmrig::ConfigWatcher *xmrig::ConfigLoader::m_watcher = nullptr; xmrig::IConfigCreator *xmrig::ConfigLoader::m_creator = nullptr; xmrig::IConfigListener *xmrig::ConfigLoader::m_listener = nullptr;