> -----Original Message----- > From: asmwarrior [mailto:asmwarrior@gmail.com] > Sent: Friday, August 23, 2013 4:27 PM > To: Bunk, Bernd > Cc: Eli Zaretskii; tromey@redhat.com; palves@redhat.com; gdb- > patches@sourceware.org > Subject: Re: [PATCH v2] Added file properties to windows gdb executable > for all mingw32 builds. > > On 2013-8-23 21:44, Bunk, Bernd wrote: > >>> > > +#include "afxres.h" > >> > > >> > Is this header really needed? > > Yes, unfortunately. > > This header file "implements" the resource language used below in the > RC file. > > > > I looked at afxres.h file under a mingw distribution (GCC 4.6.3 with > MinGW-W64 API), its contents is below Ok, my apologies for the wrong assumption. In 13 years Windows GUI programming I haven't seen an RC file without this afxres.h include. But I just tested it and it works fine with windows.h. It even compiles and links without any include, but then the complete file properties are empty at the end. I will include windows.h. [see next update] > > /** > * This file has no copyright assigned and is placed in the Public > Domain. > * This file is part of the w64 mingw-runtime package. > * No warranty is given; refer to the file DISCLAIMER.PD within this > package. > */ > #ifndef _AFXRES_H > #define _AFXRES_H > #if __GNUC__ >= 3 > #pragma GCC system_header > #endif > > #ifdef __cplusplus > extern "C" { > #endif > > #ifndef _INC_WINDOWS > #include > #endif > > /* IDC_STATIC is documented in winuser.h, but not defined. */ #ifndef > IDC_STATIC #define IDC_STATIC (-1) #endif > > #ifdef __cplusplus > } > #endif > #endif > > > > Look, it just includes windows.h. > > > Yuanhui Zhang > Intel GmbH Dornacher Strasse 1 85622 Feldkirchen/Muenchen, Deutschland Sitz der Gesellschaft: Feldkirchen bei Muenchen Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk Registergericht: Muenchen HRB 47456 Ust.-IdNr./VAT Registration No.: DE129385895 Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052 &j!z޶N9b֫rnr