add version check macro for compatibility
This commit is contained in:
@@ -224,7 +224,11 @@ void Gui::PreferencePackManager::importConfig(const std::string& packName,
|
||||
auto savedPreferencePacksDirectory =
|
||||
fs::path(App::Application::getUserAppDataDir()) / "SavedPreferencePacks";
|
||||
auto cfgFilename = savedPreferencePacksDirectory / packName / (packName + ".cfg");
|
||||
#if BOOST_VERSION >= 107400
|
||||
fs::copy_file(path, cfgFilename, fs::copy_options::overwrite_existing);
|
||||
#else
|
||||
fs::copy_file(path, cfgFilename, fs::copy_option::overwrite_if_exists);
|
||||
#endif
|
||||
rescan();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user