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: Mon, 12 Dec 2022 16:40:36 +0200

> From: Bruno Haible <bruno@clisp.org>
> Cc: bug-gnulib@gnu.org, rogerdpack@gmail.com
> Date: Mon, 12 Dec 2022 15:25:58 +0100
> 
> Eli Zaretskii wrote:
> > And Gnulib
> > is a library, so it is IMO wrong for it to decide for the applications
> > on what OS they can and cannot run.
> 
> But Gnulib is a *source-code* library. No one compiles Gnulib binaries
> separately from the application binaries. So, the setting of _WIN32_WINNT
> that Gnulib source code sees is the same as the one that the surrounding
> application sees.

A program's build could use certain cpp switches for some of its
sources, and other switches for the other sources.  When Gnulib is
compiled, the value could be unrelated to Gnulib, or unrelated to a
particular Gnulib module that is compiled (perhaps some other Gnulib
module needs that for some reason).

(This is one reason why _WIN32_WINNT is in general not a good idea,
IMO.)



reply via email to

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