"Francois Gouget" fgouget@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; }