add version check macro for compatibility

This commit is contained in:
ppphp
2024-03-30 19:17:56 +08:00
committed by wwmayer
parent b5fa008272
commit 91457bbdee

View File

@@ -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();
}