Re: __stdcall alternative
Antoninus Twink wrote:
Unless that platform unconditionally #define's it in a file #include'd after
this construct...
So you'd need to put is _after_ the last #incude
Antoninus Twink wrote:
On 24 Apr 2008 at 21:34, Eric Sosman wrote:
>
Just put
>
#ifndef __stdcall
#define __stdcall
#endif
>
at the top of your source file - then it will work on any platform.
>jacob navia wrote:
>>
> ... but you said __stdcall wasn't platform-specific, so
>why do I have to write __attribute__(( stdcall)) instead? And
>what about the other platform I tried?
>>If you use gcc you should
>>#ifndef STDCALL
>>#define STDCALL __attribute__(( stdcall))
>>#endif
>>#ifndef STDCALL
>>#define STDCALL __attribute__(( stdcall))
>>#endif
> ... but you said __stdcall wasn't platform-specific, so
>why do I have to write __attribute__(( stdcall)) instead? And
>what about the other platform I tried?
Just put
>
#ifndef __stdcall
#define __stdcall
#endif
>
at the top of your source file - then it will work on any platform.
this construct...
So you'd need to put is _after_ the last #incude
Comment