Conditionally define CDECL and FASTCALL on windows

These may already be defined by other includes. Hopefully puts out the windows
fire.
This commit is contained in:
Brian Anderson 2011-08-20 16:31:38 -07:00
parent 7dad31d11c
commit 6ad5b71ad9

View file

@ -9,8 +9,12 @@
#ifdef __i386__
// 'cdecl' ABI only means anything on i386
#ifdef __WIN32__
#ifndef CDECL
#define CDECL __cdecl
#endif
#ifndef FASTCALL
#define FASTCALL __fastcall
#endif
#else
#define CDECL __attribute__((cdecl))
#define FASTCALL __attribute__((fastcall))