pointer to __cdecl function

Boaz Harrosh wine at electrozaur.com
Tue Jul 19 06:44:22 CDT 2005


Saulius Krasuckas wrote:

>I am trying to sync w/ native crtdbg.h file, which defines:
>
>| typedef void (__cdecl *_CRT_DUMP_CLIENT) (void *, size_t);
>
>This doesn't compile with my gcc:
>
>| gcc -c -I. -I. -I../../../include -I../../../include -I../../../include/msvcrt -I./..   -D_REENTRANT -fPIC -Wall -pipe
>| -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -g -O2 -o headers.o headers.c
>| In file included from headers.c:35:
>| ../../../include/msvcrt/crtdbg.h:52: parse error before '*' token
>
>Does anyone know a way to workaround this?
>
>
>  
>
I compiled native crtdbg.h with gcc 3.3.x Just fine.
with:
#define __cdecl        __attribute__((__cdecl__))

what is the version of your gcc

Free Life
Boaz





More information about the wine-devel mailing list