From e53a2bd78108425dc9dbf17b1aeece189f729068 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 25 Apr 2013 13:32:03 -0700 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ lib/wctype.in.h | 7 +++++++ 2 files changed, 15 insertions(+) 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. */ -- 2.39.5