On 28.12.2020 03:39, Liu Hao wrote:
在 2020/12/27 上午5:44, Martin Storsjö 写道:
I'm not entierely sure I agree with this - I think different ecosystems have
different expectations
here. (It'd be interesting to e.g. rebuild all of msys2's mingw package
repository with such
headers, and see how many of them fail to run on the previous minimum version.)
If users still want headers to not provide Win10-only declarations, they may
just set _WIN32_WINNT
explicitly in build system to the exact version they want. If packagers prefer
it the old way,
they can use the configure stitch for that.
Yeah, it's good that we're able to override the default - I think I'd still
keep doing that. But I
think there's at least some amount of projects (mingw centric projects
primarily, as the default in
MSVC is different) that expect and rely on the current norm of it being set to
the minimum.
I have an impression that all projects should have defined `_WIN32_WINNT` in a
similar way to how
people work with feature test macros on Linux (the GNU C++ compiler on Linux
defines `_GNU_SOURCE`
but I think it's bad practice). The default value of `_WIN32_WINNT` doesn't
matter in a sense.
(And if we should catch with everything by default, why not just define it to
`0xFFFF`?)
I think that there are no plans for post-Windows 10 versions releases at
the moment, so win10 should work just as well for foreseeable future
without introducing a new value. There is also NTDDI_VERSION, which
specifies win10 variant and we currently default it to 0.
Jacek
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public