From 3057c18939a0ff63a49c5d9de2f905b1c155c798 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Tue, 12 Jul 2016 09:31:52 -0700 Subject: [PATCH] Use wgetcwd() with MinGW to handle non-ASCII working directory All versions of MinGW seem to have this function, so use it to ensure that wxGetCwd() returns the correct result even when the current directory contains non-ASCII characters. Closes https://github.com/wxWidgets/wxWidgets/pull/307 --- src/common/filefn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index a5fc4e6265..a0e5b275b8 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -82,7 +82,7 @@ #endif // TODO: Borland probably has _wgetcwd as well? -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) #define HAVE_WGETCWD #endif