在 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`?) -- Best regards, LH_Mouse
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public