# HG changeset patch # User Daiki Ueno # Date 1366921923 25200 # Node ID c357d97f690f2c7558ff5eefec643f0d8a7c3cba # Parent ee311a5bfb199664e1f3a61a42882821c77cca69 wctype-h: fix gettext link error on mingw Reported by Josue Andrade Gomes and Takayuki Tsunakawa in . * lib/wctype.in.h [__MINGW32__]: Include before defining rpl_towupper and rpl_towupper. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2013-04-25 Daiki Ueno + + wctype-h: fix gettext link error on mingw + Reported by Josue Andrade Gomes and Takayuki Tsunakawa in + . + * lib/wctype.in.h [__MINGW32__]: Include before defining + rpl_towupper and rpl_towupper. + 2013-04-11 Dmitry V. Levin regex-tests, regex: allow glibc re_search behavior diff --git a/lib/wctype.in.h b/lib/wctype.in.h --- a/lib/wctype.in.h +++ b/lib/wctype.in.h @@ -44,6 +44,13 @@ # include #endif +/* mingw has declarations of towupper and towlower in as + well . Include in advance to avoid rpl_ prefix + being added to the declarations. */ +#ifdef __MINGW32__ +# include +#endif + /* Include the original if it exists. BeOS 5 has the functions but no . */ /* The include_next requires a split double-inclusion guard. */