From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 95DD43858D20; Mon, 29 Jan 2024 09:55:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95DD43858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706522116; bh=+CdKrTCx8nHO87Lz+wFfsGsj0dbEGJeGrqBdHgPNVok=; h=From:To:Subject:Date:From; b=ane/P8rmQJXk0hA9bZA0IDUn8XqePc/o1WWtEZf+l+8ofTYDZ+VAR5LzHe1bfBHOb rDKwanQgHQzbTEAXzgW4aqqdVfJlkBkmRrwygm0VxZYx0eYyOLxL+v/2lUSuxgDwCk uyIkq/tPKxlFMsiHl+MmItoU4WjaOVEZ/NlGlOik= From: "pexu at sourceware dot mail.kapsi.fi" To: gdb-prs@sourceware.org Subject: [Bug gdb/31307] New: gdb/symtab.h: SEARCH_ALL clashes with on MinGW Date: Mon, 29 Jan 2024 09:55:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pexu at sourceware dot mail.kapsi.fi X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31307 Bug ID: 31307 Summary: gdb/symtab.h: SEARCH_ALL clashes with on MinGW Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: pexu at sourceware dot mail.kapsi.fi Target Milestone: --- Hi. Recent domain_search_flags patch [1] introduces a convenience constant SEARCH_ALL that unfortunately clashes with SEARCH_ALL macro that is defined .=20=20 This header file is included indirectly when compiling gdb/mingw-hdep.c (via gdb/serial.h:23 -> /mingw-w64/include/winsock2.h:23 -> /mingw-w64/include/windows.h:97 -> /mingw-w64/include/winscard.h:11 -> /mingw-w64/include/winioctl.h). A quick (and dirty) workaround would be to add #define NOCRYPT prior serial= .h include. However, in the long run, it might be more beneficial to move et. al. to a shared header that sets up all feature removal mac= ros. [1] https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommitdiff;h=3D25f31e1= 820dcec2f0c073c28cbf88646c7c2af97 --=20 You are receiving this mail because: You are on the CC list for the bug.=