Microsoft Visual C (MSVC) compabillity

Francois Gouget fgouget at free.fr
Thu Jan 31 15:29:41 CST 2002


On 31 Jan 2002, Alexandre Julliard wrote:

> Patrik Stridvall <ps at leissner.se> writes:
>
> > All of the forms:
> >
> > (1) void WINAPI (*foo)(void);
> > (2) void (* WINAPI foo)(void);
> > (3) void (WINAPI *foo)(void);
> >
> > Seems to work with gcc. Even with gcc 2.7.x.
>
> I believe the problems were rather with g++. In my 2.95.4 version,
> case (2) still doesn't work (well it compiles but generates wrong
> code). Case (3) works though, so that sounds like the way to go, I'll
> apply your patch.

   Yes, g++ is the culprit here. IIRC I did some changes about one year
ago because of g++ (maybe going to 1 or 2).  But in any case I would
consider it a bug with g++, hopefully they will fix it (either in 2.95.5
or 3.0.x).


--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                     Avoid the Gates of Hell - use Linux.





More information about the wine-devel mailing list