aboutsummaryrefslogtreecommitdiffstats
path: root/nonposix.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-02-02 11:52:51 +0200
committerEli Zaretskii <eliz@gnu.org>2019-02-02 11:52:51 +0200
commitf0be506c0b0c2a220e0a3112dca91ec352aad530 (patch)
tree9057e60f54d90244a6f62708fbd0ab7542360d1c /nonposix.h
parented3ce8fb4800e0746726d7d59642518fa4983889 (diff)
downloadegawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.tar.gz
egawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.tar.bz2
egawk-f0be506c0b0c2a220e0a3112dca91ec352aad530.zip
Fix compilation errors and warnings with MinGW64.
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__ */