Hello, currently, wctype.h gets the definition of wint_t as follows: /* Get wint_t from <stddef.h>. */ # define __need_wint_t # include <stddef.h> On the other hand, wchar.h (which also supports inclusion with __need_wint_t) has a more elaborate strategy that works around gcc versions (and other compilers) that don't define wint_t (there is also mention of some namespace issue). Is it possible to change wctype.h to use the following? /* Get wint_t from <wchar.h>. */ # define __need_wint_t # include <wchar.h>
I might reverse the change because it is dangerous to not use the definition from stddef.h but for now I changed it along the lines suggested.