Mail Archives: djgpp/1997/10/20/20:45:20
At 02:07 10/20/1997 +0000, tanph AT bj DOT col DOT com DOT cn wrote:
>
>Perhaps I should post to the GCC's mailing list, but I don't know
>its exact address.
>
>I use rsxntdj to develop Win32 programming and encountered
>the following function prototype definition in a header file:
>
>PASCAL void *func(PASCAL void *(void));
>
>I have tried:
>
>__attribute__(stdcall) void *func(
> __attribute__(stdcall) void *(void));
>__attribute__(stdcall) void *func(
> void *(void) __attribute__(stdcall));
>
>But gcc don't compile it, how to convert this definition to a form
>gcc likes?
Try enclosing `stdcall' in two sets of parenthesis. i.e.:
`__attribute__((stdcall))'. This is how the docs say to do it.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -