summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index a55641eada..cbcf4e8117 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -387,6 +387,11 @@ extern char *mystrerror(int);
#endif
#define get_osfhandle myget_osfhandle
+#ifdef getcwd
+#undef getcwd
+#endif
+#define getcwd win32_getcwd
+
#ifdef getenv
#undef getenv
#endif