X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e436c454e17774eba4c79e0d5d9d056448d96a20..cc3977bf132d40cb66c6b488890ef67a396d4a0a:/src/msw/utils.cpp diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index a456a3417a..e7445c3fcb 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -627,7 +627,7 @@ bool wxDoSetEnv(const wxString& var, const wxChar *value) // // TODO: add checks for the other compilers (and update wxSetEnv() // documentation in interface/wx/utils.h accordingly) -#if defined(__VISUALC__) +#if defined(__VISUALC__) || defined(__MINGW32__) // notice that Microsoft _putenv() has different semantics from POSIX // function with almost the same name: in particular it makes a copy of the // string instead of using it as part of environment so we can safely call