Hopefully fix win32 due to setenv being _setenv.
This commit is contained in:
parent
d7e82c4c4a
commit
677bfb4020
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -65,7 +65,7 @@ int main(int argc, char **argv) {
|
|||
bool probe_only = false;
|
||||
std::filesystem::path executable_path = std::filesystem::weakly_canonical(*argv).parent_path();
|
||||
#ifdef _WIN32
|
||||
setenv("MAGICK_CODER_MODULE_PATH", executable_path.c_str(), 0);
|
||||
_setenv("MAGICK_CODER_MODULE_PATH", executable_path.c_str(), 0);
|
||||
#endif
|
||||
InitializeMagick(*argv);
|
||||
argc--;
|
||||
|
|
Loading…
Reference in a new issue