Why don't you try:
void __attribute__((cdecl)) foo( int x, int y, int z );
:)
--
Ignacio Castaño
cas...@ya...
--- Brian Hook <ho...@bo...> wrote:
> I'd like to be able specify CDECL in a cross-platform manner. On most
> x86 compilers there's just the __cdecl keywod:
>
> void __cdecl foo( int x, int y, int z );
>
> GCC, of course, does it completely differently:
>
> void foo( int x, int y, int z ) __attribute((cdecl));
>
> So a simple #define won't work. Now, you can do a kind of convoluted
> thing using a define, but damn, it's REAL ugly.
>
> Is there a cleaner way of doing this?
>
______________________________________________
Renovamos el Correo Yahoo!: ¡100 MB GRATIS!
Nuevos servicios, más seguridad
http://correo.yahoo.es
|