aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/ChangeLog4
-rw-r--r--util/simple-gettext.c4
-rw-r--r--util/w32reg.c5
3 files changed, 9 insertions, 4 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index 6230902b1..d2de7bb95 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,7 @@
+2001-12-19 Werner Koch <[email protected]>
+
+ * simple-gettext.c, w32reg.c [CYGWIN32]: Allow to use this file
+
2001-10-11 Werner Koch <[email protected]>
* http.c (do_parse_uri): Changed initialization of the port number
diff --git a/util/simple-gettext.c b/util/simple-gettext.c
index 461c357d7..500226709 100644
--- a/util/simple-gettext.c
+++ b/util/simple-gettext.c
@@ -27,8 +27,8 @@
#include <config.h>
#ifdef USE_SIMPLE_GETTEXT
-#ifndef __MINGW32__
- #error This file can only be used with MinGW32
+#if defined (__MINGW32__) || defined (__CYGWIN32__)
+ #error This file can only be used with MingW32 or Cygwin32
#endif
#include <stdio.h>
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__ */