On Friday 07 November 2025 15:20:16 LIU Hao wrote: > 在 2025-11-7 01:39, Pali Rohár 写道: > > Well, I saw that mingw-w64 winternl.h already contains other stuff from > > ntddk.h which is not in the ms winternl.h header file, so I thought that > > it is a good idea to have it. That is why I added it into both files. > One reason for not adding new names in winternl.h is that it might conflict > with a user-defined one, and it would result in inconsistency that someone > has to deal with, if they have code that should be compiled with either MSVC > or GCC (and Clang).
I see the point. One option could be to hide these declarations inside some ifdef macros. > There are some holy relics such as `getopt()` and `opendir()` that are kept > in order not to cause breaks. This is quite different situation as those functions are from POSIX and they are exported for POSIX applications. Some (or maybe all?) are visible when _POSIX is defined. _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
