diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-02-02 11:52:51 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-02-02 11:52:51 +0200 |
commit | f0be506c0b0c2a220e0a3112dca91ec352aad530 (patch) | |
tree | 9057e60f54d90244a6f62708fbd0ab7542360d1c /nonposix.h | |
parent | ed3ce8fb4800e0746726d7d59642518fa4983889 (diff) | |
download | egawk-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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__ */ |