Re: [PATCH 1/2] fix conflicting types (wint_t)

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Jul 23 21:15, [email protected] wrote:
> From: uchan-nos <[email protected]>
> 
> ---
>  newlib/libc/string/wcwidth.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/newlib/libc/string/wcwidth.c b/newlib/libc/string/wcwidth.c
> index 62e76edc3..a4b520bbe 100644
> --- a/newlib/libc/string/wcwidth.c
> +++ b/newlib/libc/string/wcwidth.c
> @@ -225,10 +225,16 @@ __wcwidth (const wint_t ucs)
>  #endif /* _MB_CAPABLE */
>  }
>  
> +#ifdef __CYGWIN__
> +#define WCHAR_TYPE wint_t
> +#else
> +#define WCHAR_TYPE wchar_t
> +#endif
> +
>  int
> -wcwidth (const wint_t wc)
> +wcwidth (const WCHAR_TYPE wc)
>  {
> -  wint_t wi = wc;
> +  WCHAR_TYPE wi = wc;

This is incorrect.  _jp2uc() as well as __wcwidth always take a wint_t
argument.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl04BygACgkQ9TYGna5E
T6CD0g/9HiAdRq3n6wF9IFc/DyvK36svLv55svBFmy5pB+CIVqwSbw0u1GMrKESQ
5IDGK23/bqcMIW4t5N2rRpO9hsOaP3s+8cN2c6klSmG0L5SqlJ74jxEaKs0vpv9R
bCNikx8h586kFhCSPtqe0TknX3wXlQF9reWOr+b3YO62rphE6K45FqnvVhM3IV00
AKIT7WOG5lic9wsEXquPDLD9QdgKGzIh51IBR3stM2eF9vV3gUW6tYFFkjPfYrSk
/mNLf2LF6MQxbSRzHqLtN7/j5LTzULq/E/AgTc8Q/O6DP+q5PLMW26HWR2/EqCDy
wk6ba9rr65LhYNeJ6hT7keL9seeYaSh68rXH9lJDU8eDaBp0LiQCV7aeeszVs3MW
ORTsF8OPWAStjRRkP8yJQbsv5O0ZOWbhVA+amj7bFZ5OCcYPQNsAcA/LIjVBNz52
OHPQsjggDXvtlpKe13mKb2XK0dSod8bkB3MTRafj8JRKSb0Woqey/KBNYN0ubpMD
TTK7C8CL2M/V3g0GTq1PvldpjHEn2pd1pHzgOIFmyvTtG7WqKqN9KbvZzBvtbE7I
ixq3zDK8Od4RdfLwXC0v8NEw57G0aKKZRPdP9C6Z/cM93AUk3BvndtKA0vvOJJpA
VVrNKIQ8cwL7C+0xCo7UW/4ruW06Suz+jVIbcUPu4bOR1VdyHdw=
=6btA
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.