Hopefully fix win32 due to setenv being _setenv.

This commit is contained in:
Zachary Hall 2023-12-01 15:54:06 -08:00
parent d7e82c4c4a
commit 677bfb4020

View file

@ -65,7 +65,7 @@ int main(int argc, char **argv) {
bool probe_only = false; bool probe_only = false;
std::filesystem::path executable_path = std::filesystem::weakly_canonical(*argv).parent_path(); std::filesystem::path executable_path = std::filesystem::weakly_canonical(*argv).parent_path();
#ifdef _WIN32 #ifdef _WIN32
setenv("MAGICK_CODER_MODULE_PATH", executable_path.c_str(), 0); _setenv("MAGICK_CODER_MODULE_PATH", executable_path.c_str(), 0);
#endif #endif
InitializeMagick(*argv); InitializeMagick(*argv);
argc--; argc--;