From 677bfb4020fc633ee356de8d545146c68db19303 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Fri, 1 Dec 2023 15:54:06 -0800 Subject: [PATCH] Hopefully fix win32 due to setenv being _setenv. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index aee9c01..d29fe95 100644 --- a/main.cpp +++ b/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--;