This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __declspec(selectany)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]