From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id qvh/HPwtYmMFIBMAWB0awg (envelope-from ) for ; Wed, 02 Nov 2022 04:44:44 -0400 Received: by simark.ca (Postfix, from userid 112) id 66CDB1E124; Wed, 2 Nov 2022 04:44:44 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=caqr61q4; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id DBD011E0CB for ; Wed, 2 Nov 2022 04:44:43 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 437493858006 for ; Wed, 2 Nov 2022 08:44:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 437493858006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1667378683; bh=QKKt8JBNvK/AbrzxBZ1A2ujgllAyES5dqiydJjh8xjc=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=caqr61q4DeOYaa6eg2Tz+A5UNGHbpg2zzJNqvfiZ0NmY3pcswDslIuQfG4yt3OaYm j+A32vdr41yGpXGYTRMKIW8O2Qv2LXkM2TSeBWqyhmlcVRrrwd0icWa80m3nb7SYPj DT4609DlI6UP7UpCAj1QLoDCeUSNg5umRS5ZJvyI= Received: from confino.investici.org (confino.investici.org [IPv6:2a11:7980:1::2:0]) by sourceware.org (Postfix) with ESMTPS id 5E0AA3858D35 for ; Wed, 2 Nov 2022 08:44:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5E0AA3858D35 Received: from 1.mail-backend.investici.org (unknown [10.0.0.11]) by confino.investici.org (Postfix) with ESMTP id 4N2L613QwBz110B for ; Wed, 2 Nov 2022 08:44:09 +0000 (UTC) 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 4N2L6121vCz5t7d for ; Wed, 2 Nov 2022 08:44:09 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 02 Nov 2022 08:44:09 +0000 To: gdb@sourceware.org Subject: Re: _WIN32_WINNT redefined? In-Reply-To: References: <6485dbfe07e21a1c451b17d3fda5b3d9@autistici.org> User-Agent: Roundcube Webmail Message-ID: <41193fbdb742b1c2d4d7b4ab06561822@autistici.org> X-Sender: i.nixman@autistici.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: niXman via Gdb Reply-To: i.nixman@autistici.org Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 2022-11-02 08:21, niXman via Gdb wrote: > On 2022-11-02 08:14, niXman via Gdb wrote: > > > looks like it can be defined here: > https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdbsupport/common-defs.h;h=e4985332e3f4016ccec2b2502dfe28bab16e2c92;hb=HEAD#l81 > > > as 0x0500 if it wasn't defined before... right, because inclusion of windows.h here (https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdbsupport/common-defs.h;h=e4985332e3f4016ccec2b2502dfe28bab16e2c92;hb=HEAD#l74) after line 74 solves the trouble. but it introduced another trouble: ``` mkdir -p -- nat/.deps CXX gdb.o CXX ada-exp.o ada-exp.c.tmp:557: warning: "IN" redefined In file included from C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/windef.h:9, from C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/windows.h:69, from ../../../../src/gdb-11.2/gdb/../gdbsupport/common-defs.h:75, from ../../../../src/gdb-11.2/gdb/defs.h:28, from ada-exp.y:38: C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/minwindef.h:57: note: this is the location of the previous definition 57 | #define IN | ada-exp.c.tmp:482:11: error: 'INT' redeclared as different kind of entity In file included from C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/minwindef.h:163: C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/winnt.h:299:15: note: previous declaration 'typedef int INT' 299 | typedef int INT; | ^~~ ada-exp.c.tmp:485:13: error: 'FLOAT' redeclared as different kind of entity C:/msys64/home/Sysuser/mingw-gcc-trunk/x86_64-trunk-win32-seh-rt_v10-rev0/mingw64/x86_64-w64-mingw32/include/minwindef.h:142:17: note: previous declaration 'typedef float FLOAT' 142 | typedef float FLOAT; | ^~~~~ ``` =)