From: Daiki Ueno Date: Thu, 25 Apr 2013 20:32:03 +0000 (-0700) Subject: wctype-h: fix gettext link error on mingw X-Git-Tag: v0.1~161 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e53a2bd78108425dc9dbf17b1aeece189f729068;p=gnulib.git 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 index f49e88195c..fd0596674d 100644 --- 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 index a465af298e..933d6221db 100644 --- 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. */