On Sat, Dec 26, 2020 at 6:41 AM Jacek Caban <[email protected]> wrote:
>
> Signed-off-by: Jacek Caban <[email protected]>
> ---
>
> I think it's reasonable to assume that the current default value of
> Windows XP does not reflect reality. The new value deserves some
> considerations. I propose to go all the way to Windows 10 and match
> Windows SDK.
>
> The main concern about this is compatibility. This value is commonly
> mistaken with 'minimum version supported in runtime', which is simply
> not the case. It's only a version that headers will provide declarations
> for. As long as the application does not use new APIs, its compatibility
> with older Windows will not change.
>
> I think that the change reflects expectations of majority of users. 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.

Ran into this.
According to 
https://learn.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170
"The preprocessor macros WINVER and _WIN32_WINNT specify the minimum
operating system version your code supports."

Anyway, setting this value to default to windows 10 caught me
recently, suddenly compiling gnutls doesn't work for windows 7 anymore
It uses Gnulib's gettimeofday.c internally, which links against the
windows 8' GetSystemTimePreciseAsFileTime if _WIN32_WINNT is set high
enough.

You can manually set CFLAGS=_WIN32_WINNT... but some libraries don't
realize that and now everywhere that wants to support 7 is forced to
set it.
Just a thought.  If you're comfortable basically having every package
everywhere that supports windows < 10 to specify it I guess that's an
option.
Cheers!


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to