summaryrefslogtreecommitdiff
path: root/lib/getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getcwd.c')
-rw-r--r--lib/getcwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getcwd.c b/lib/getcwd.c
index 1a42ef1bfa..07c7927e48 100644
--- a/lib/getcwd.c
+++ b/lib/getcwd.c
@@ -104,7 +104,7 @@
# undef closedir
#endif
-#ifdef _MSC_VER
+#if defined _WIN32 && !defined __CYGWIN__
# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
static char *
getcwd_nothrow (char *buf, size_t size)