bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettimeofday.c windows version?


From: Eli Zaretskii
Subject: Re: gettimeofday.c windows version?
Date: Sat, 17 Dec 2022 10:09:26 +0200

> Date: Fri, 16 Dec 2022 15:35:27 -0800
> Cc: bruno@clisp.org, bug-gnulib@gnu.org, rogerdpack@gmail.com
> From: Paul Eggert <eggert@cs.ucla.edu>
> 
> 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

[Prev in Thread] Current Thread [Next in Thread]