aboutsummaryrefslogtreecommitdiffstats
path: root/nonposix.h
diff options
context:
space:
mode:
Diffstat (limited to 'nonposix.h')
-rw-r--r--nonposix.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nonposix.h b/nonposix.h
index 26ef32b9..52fb21f2 100644
--- a/nonposix.h
+++ b/nonposix.h
@@ -57,6 +57,12 @@ int unsetenv (const char *);
int setenv (const char *, const char *, int);
void w32_maybe_set_errno (void);
char *w32_setlocale (int, const char *);
+/* libintl.h from GNU gettext defines setlocale to redirect that to
+ its own function. Note: this will have to be revisited if MinGW
+ Gawk will support ENABLE_NLS at some point. */
+#ifdef setlocale
+# undef setlocale
+#endif
#define setlocale(c,v) w32_setlocale(c,v)
#endif /* __MINGW32__ */