From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42175 invoked by alias); 18 Apr 2019 17:01:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 42158 invoked by uid 89); 18 Apr 2019 17:01:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 Apr 2019 17:01:00 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5178A30BA36B; Thu, 18 Apr 2019 17:00:59 +0000 (UTC) Received: from f29-4.lan (ovpn-116-111.phx2.redhat.com [10.3.116.111]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 28DB75C207; Thu, 18 Apr 2019 17:00:59 +0000 (UTC) Date: Thu, 18 Apr 2019 17:01:00 -0000 From: Kevin Buettner To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: Fix compilation using mingw.org's MinGW Message-ID: <20190418100058.34c64f18@f29-4.lan> In-Reply-To: <835zrbe36c.fsf@gnu.org> References: <835zrbe36c.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00349.txt.bz2 On Thu, 18 Apr 2019 18:36:11 +0300 Eli Zaretskii wrote: > --- gdb/windows-nat.c~0 2019-03-27 00:52:05.000000000 +0200 > +++ gdb/windows-nat.c 2019-04-18 11:37:02.061945600 +0300 > @@ -81,6 +81,16 @@ > #define GetConsoleFontSize dyn_GetConsoleFontSize > #define GetCurrentConsoleFont dyn_GetCurrentConsoleFont > > +#if _WIN32_WINNT < 0x0501 > + > +typedef > +struct _CONSOLE_FONT_INFO > +{ DWORD nFont; > + COORD dwFontSize; > +} CONSOLE_FONT_INFO, *PCONSOLE_FONT_INFO; > + > +#endif > + > typedef BOOL WINAPI (AdjustTokenPrivileges_ftype) (HANDLE, BOOL, > PTOKEN_PRIVILEGES, > DWORD, PTOKEN_PRIVILEGES, I had expected to see a typedef for struct CONSOLE_FONT_INFO, but instead see one for _CONSOLE_FONT_INFO (where the difference is the leading underscore.) I'm guessing that there's some magic in Windows specific header files which makes this work, but I just want to check to make sure that this wasn't a typo on your part... Kevin