Patrik Stridvall ps@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.