diff options
Diffstat (limited to 'lib/tmpdir.c')
-rw-r--r-- | lib/tmpdir.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tmpdir.c b/lib/tmpdir.c index 74ae359262..28ff99f58a 100644 --- a/lib/tmpdir.c +++ b/lib/tmpdir.c @@ -49,6 +49,12 @@ #include "pathmax.h" +#if defined _WIN32 && ! defined __CYGWIN__ +/* Don't assume that UNICODE is not defined. */ +# undef GetTempPath +# define GetTempPath GetTempPathA +#endif + #if _LIBC # define struct_stat64 struct stat64 #else |