From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from latitanza.investici.org (latitanza.investici.org [IPv6:2001:888:2000:56::19]) by sourceware.org (Postfix) with ESMTPS id 73A073857023 for ; Wed, 2 Nov 2022 17:20:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 73A073857023 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=autistici.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=autistici.org Received: from 1.mail-backend.investici.org (unknown [10.0.0.11]) by latitanza.investici.org (Postfix) with ESMTP id 4N2YZB6nFTzGp2t; Wed, 2 Nov 2022 17:20:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1667409650; bh=ztZReFgwULCQpABjZk/yJp/oH7V7fJNAO27v+yGMgVg=; h=Date:From:To:Subject:In-Reply-To:References:From; b=sYgVz/p3ZcwUtEWDufMPi56+a6AiIeQTrLEJe0nLcF7X508noYbpkhG7U97SQWXaq VMNcz6HI/mvsK4Hy9T0aEbAdyoTSysTaSgv4D2SPhlPu1KSaDBao3bfIDXXTb2muDj QeBWaaHnyuYQVd9xKP+p0CUjFVyr/zQhFC33bTEQ= Received: from 1.webmail.investici.org (localhost [127.0.0.1]) (Authenticated sender: i.nixman@autistici.org) by 1.mail-backend.investici.org (Postfix) with ESMTPA id 4N2YZB5STzz5tCB; Wed, 2 Nov 2022 17:20:50 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 02 Nov 2022 17:20:50 +0000 From: i.nixman@autistici.org To: Eli Zaretskii , gdb@sourceware.org Subject: Re: _WIN32_WINNT redefined? In-Reply-To: <83fsf19u62.fsf@gnu.org> References: <6485dbfe07e21a1c451b17d3fda5b3d9@autistici.org> <41193fbdb742b1c2d4d7b4ab06561822@autistici.org> <8335b1bjv2.fsf@gnu.org> <83h6zh9ygb.fsf@gnu.org> <821f45f4fe87dc1dcea23520dd8e42ab@autistici.org> <83fsf19u62.fsf@gnu.org> User-Agent: Roundcube Webmail Message-ID: <0a2bab35dcbc1df695371814c7802ec6@autistici.org> X-Sender: i.nixman@autistici.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2022-11-02 16:51, Eli Zaretskii wrote: > That's on your system, with your MinGW w32api headers. But that's not > the only game in town. I'm sure there is no WINAPI implementation that does not define _WIN32_WINNT. it's just impossible. but in line 75 the condition is exactly for that impossible case. > That's not what I suggested. I suggested that you augment the above > cpp conditionals such that when the gthread patch is in use, > _WIN32_WINNT is defined to 0x0600, and otherwise to 0x0501, as before. > > The question is: what could be a preprocessor conditional to determine > whether the gthread patch is used, so that it could be used to augment > the above. This is something I cannot answer, but I hope you can. I solved my problem. What I'm doing now is trying to tell you that it's illogical to check the value of _WIN32_WINNT BEFORE the corresponding header file in which this value was originally defined, has been included. best!