> Date: Fri, 16 Dec 2022 15:35:27 -0800
> Cc: [email protected], [email protected], [email protected]
> From: Paul Eggert <[email protected]>
> 
> On 12/12/22 12:37, Eli Zaretskii wrote:
> 
>  It should be easy to arrange for Emacs to compile Gnulib source code 
> with whatever value of _WIN32_WINNT is appropriate for Gnulib, by 
> modifying emacs/lib/Makefile.in appropriately. For example, we could 
> leave gettimeofday.c alone add a line like this to Makefile.in:
> 
>     ALL_CFLAGS += -D_WIN32_WINNT=_WIN32_WINNT_WINXP
> 
> Would something like this address the issue you're thinking of?
> 
> In this case, yes.
> 
> I looked into doing that in the Emacs source, but discovered that 
> emacs/nt/inc/ms-w32.h already does "#
> define _WIN32_WINNT 0x0400" for MinGW so I guess we're OK already as that's 
> even older than
> _WIN32_WINNT_WINXP which is 0x0501. Of course I don't know MS-Windows well 
> and so may have missed
> something.

No, you haven't missed anything.  We are still trying to support
Windows 9X, which is why the low setting of _WIN32_WINNT.

Note that we don't use this low setting for MinGW64, which tossed
support for XP and older versions several years ago anyway.  We only
use this when Emacs is built with mingw.org's MinGW.

Reply via email to