query: __attribute__ in gcc vs g++

Chris Dollin kersAThplb.hpl.hp.com
Fri Oct 1 00:00:00 GMT 1999


Mumit Khan wrote:
> 
> In article < 37DE6374.D93EC0F6@hplb.hpl.hp.com >,
> Chris Dollin  <kers@hplb.hpl.hp.com> wrote:
> >The following fragment:
> >
> >    #define __stdcall __attribute__((__stdcall__))
> >    #define CALLBACK    __stdcall
> >
> >    typedef int (CALLBACK *foo)( int );
> >
> >compiles silently using gcc but not using g++ (which issues
> >error messages as if it were December 31st).
> >(--version says "egcs-2.91.66" for both).
> 
> This feature was in my binary releases for x86-win32 ports, but
> not in the standard egcs-1.1.x releases (I assume you're compiling
> on non x86-win32 platform since you mention Wine).
> 
> Jason Merrill has added it since, and not it is supported in
> gcc-2.95.x releases.
> 
> Upgrade.

Thanks; that solved that problem.

(Of course I have others, but they're no longer gcc-related ...)

-- 
Chris "and I invoke WinMain *how*, exactly?" Dollin


More information about the Gcc-help mailing list