This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __declspec(selectany)
- From: "Dimitrie O. Paun" <dpaun at rogers dot com>
- To: Dan Kegel <dank at kegel dot com>,Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- Cc: boaz at hishome dot net,wine-devel at winehq dot com,GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 6 Aug 2003 00:31:07 -0400
- Subject: Re: __declspec(selectany)
- Organization: DSSD Software Inc.
- References: <3F302784.80903@kegel.com> <20030806032610.GA24995@ceres.cs.mu.oz.au> <3F308031.3000809@kegel.com>
- Reply-to: dpaun at rogers dot com
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.