On August 6, 2003 12:12 am, Dan Kegel wrote:
Silly me. For some reason I thought the builtin declarations were magic. Here's a little demo that might show the basic idea.
winegcc already defines these things:
gcc_argv[i++] = "-D__stdcall=__attribute__((__stdcall__))"; gcc_argv[i++] = "-D__cdecl=__attribute__((__cdecl__))"; gcc_argv[i++] = "-D__fastcall=__attribute__((__fastcall__))"; gcc_argv[i++] = "-D_stdcall=__attribute__((__stdcall__))"; gcc_argv[i++] = "-D_cdecl=__attribute__((__cdecl__))"; gcc_argv[i++] = "-D_fastcall=__attribute__((__fastcall__))"; gcc_argv[i++] = "-D__declspec(x)=__attribute__((x))";