bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding the MS-Windows wint_t type considered harmful


From: Eli Zaretskii
Subject: Re: Overriding the MS-Windows wint_t type considered harmful
Date: Mon, 01 May 2017 14:29:20 +0300

> From: Bruno Haible <address@hidden>
> Date: Mon, 01 May 2017 12:59:04 +0200
> 
> > One scenario where this gets in the way is when the application
> > includes some other header, e.g. ctype.h, which declares the same isw*
> > functions as wchar.h and wctype.h -- if the inclusion of ctype.h is
> > _after_ wchar.h/wctype.h are included, this produces compilation
> > errors, because the prototypes of the isw* functions were first seen
> > with the original wint_t type, and now are seen with the wider wint_t.
> 
> Thanks for the report. The case of <ctype.h> after <wctype.h> was already
> handled for mingw. Here's a patch to cover the case <wchar.h> after <wctype.h>
> as well.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]