In current version of mingw wint_t type is defined only in stddef.h header, which is actually compiler-specific header and is placed in /lib/gcc/mingw32/<version>/include directory.
However, C standard says that wint_t type should be defined in wchar.h and wctype.h headers, and there is now such requirements for stddef.h.
In gnu c library, wchar.h header defines wint_t if it is not defined in stddef.h. I think that mingw should do the same.
This problem occurs when trying to use clang ftont-end with mingw headers. clang does not define wint_t type in stddef.h header.
Log in to post a comment.