Review - Winnt.h warning patch for mingw32

Dmitry Timoshkov dmitry at baikal.ru
Thu Apr 4 20:47:03 CST 2002


"Francois Gouget" <fgouget at free.fr> wrote:

> > +#if !defined(_stdcall)
> >  #define _stdcall    __stdcall
> >  #define _fastcall   __stdcall
> >  #define __fastcall  __stdcall
> > +#endif
> 
>    Is _stdcall going to be a macro? I would rather expect it to be a
> reserved keyword like in Visual C++.

Certainly I don't know whether _stdcall is a macro or not, but the
construction below compiles correctly without warnings by both cl and gcc.

#if !defined(_stdcall)
#define _stdcall    __stdcall
#endif

#define WINAPI      _stdcall

typedef unsigned long DWORD;

extern DWORD WINAPI GetLastError(void);

int main(void)
{
    return GetLastError() != 0xdeadbeef;
}

-- 
Dmitry.






More information about the wine-devel mailing list