From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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 confino.investici.org (Postfix) with ESMTP id 4N2L613QwBz110B for ; Wed, 2 Nov 2022 08:44:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1667378649; bh=QKKt8JBNvK/AbrzxBZ1A2ujgllAyES5dqiydJjh8xjc=; h=Date:From:To:Subject:In-Reply-To:References:From; b=oylqfxLl1Ss/UO1nQfOlFsR9mM7kLfysvPNEtfM7m5yF+oRVYSw9sj2YA/KMYkBQh CU2W4LgLHU3J8wXMLaHBPTz1Q6dAik0+BWJvuVTqXyVHiUkgi6oOMNc0oJAXWOU9lo /XMvpM1ddQfr5xQOVShbHgCyK3Sns2TfLfhmNJbg= 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 From: i.nixman@autistici.org 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-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 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; | ^~~~~ ``` =)