From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C99D21F61A for ; Mon, 12 Dec 2022 14:44:34 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.b="VJ00QZ96"; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4jyx-0006DC-3z; Mon, 12 Dec 2022 09:40:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4jyv-0006Bk-Np for bug-gnulib@gnu.org; Mon, 12 Dec 2022 09:40:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4jyu-0004Pq-FC; Mon, 12 Dec 2022 09:40:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NPDzlDB6Zr1lU5TQgOP31txFhLMCHIsRXsgY1ELwy7A=; b=VJ00QZ96R8ld lFZ9TAMJs1w10y51GDtMCc2F7azURIZ7zQovAHF2TWW8r/K4tYf7NGhbxLGDwyUPHA27SVtxBpj9V iPkDRhJAnmRGZIIkDswIXIvJ+KxYkG75t7cXP8XCdINM/ZfxMOJk5Ob7arfbv5ZKA+ClOFGBgVIDX ywko1OSyseR0IK3eYfnW5H19ACxD3ZDhSr97NVs3NiyBZdjMpZ520gWPiQM5nzpmlkCaNQSpeP18R 4klDjOt2vgZiXr3DypZZvWwyr58rQIJ76mN0UsfkG+oYZ2Z2NMHFSDrP6h16nqO8WsI3e9CRK5q+y 1guvfAowxTXZgdB3hbrOoQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4jyt-0000a2-Vn; Mon, 12 Dec 2022 09:40:36 -0500 Date: Mon, 12 Dec 2022 16:40:36 +0200 Message-Id: <834ju0sn17.fsf@gnu.org> From: Eli Zaretskii To: Bruno Haible Cc: eggert@cs.ucla.edu, bug-gnulib@gnu.org, rogerdpack@gmail.com In-Reply-To: <1793643.CLbsiaQdQ3@nimes> (message from Bruno Haible on Mon, 12 Dec 2022 15:25:58 +0100) Subject: Re: gettimeofday.c windows version? References: <24d3a74d-ef39-4c55-bf3d-cdbf42ec2c0f@cs.ucla.edu> <83k02wsrea.fsf@gnu.org> <1793643.CLbsiaQdQ3@nimes> X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org > From: Bruno Haible > 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.)