__declspec(selectany)

Dimitrie O. Paun dpaun at rogers.com
Tue Aug 5 23:31:07 CDT 2003


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))";
                                                                                                                                               

-- 
Dimi.




More information about the wine-devel mailing list