include/wchar.h
from mingwrt-4.0.0-1-mingw32-dev contains a struct _stat64
declaration that does not compile when _NO_OLDNAMES
is defined, because it uses dev_t
, ino_t
, mode_t
which are only available with an _
underscore prefix (_dev_t
etc.) under _NO_OLDNAMES
.
https://sourceforge.net/p/mingw/mingw-org-wsl/ci/master/tree/include/wchar.h#l643
This seems to be a regression of [2973c0] which removed an #ifndef _NO_OLDNAMES
block around this struct body, without changing the dev_t
etc. typedefs used in it.
Either the whole structure declaration should be enclosed in an #ifndef _NO_OLDNAMES
block, or the fields should be changed to use the typedefs with underscore prefixes. I guess the 2nd solution may be right, in order to match the declaration of struct _stat32
:
https://sourceforge.net/p/mingw/mingw-org-wsl/ci/master/tree/include/wchar.h#l643
This issue is still present in mingw32-w32api 4.0.3-1