aboutsummaryrefslogtreecommitdiffstats
path: root/util/w32reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/w32reg.c')
-rw-r--r--util/w32reg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/w32reg.c b/util/w32reg.c
index a0da975ef..000ae07b7 100644
--- a/util/w32reg.c
+++ b/util/w32reg.c
@@ -19,7 +19,8 @@
*/
#include <config.h>
-#ifdef __MINGW32__ /* This module is only used in this environment */
+#if defined (__MINGW32__) || defined (__CYGWIN32__)
+ /* This module is only used in this environment */
#include <stdio.h>
#include <stdlib.h>
@@ -124,4 +125,4 @@ write_w32_registry_string(const char *root, const char *dir,
return 0;
}
-#endif /* __MINGW32__ */
+#endif /* __MINGW32__ || __CYGWIN32__ */