Mercurial > sdl-ios-xcode
diff include/begin_code.h @ 1025:3652d111416c
Avoid gcc parse errors on Win32. This is fine in general because gcc uses
the cdecl calling convention by default.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 08 Jan 2005 23:13:01 +0000 |
parents | e3b3130f3af8 |
children | 173c063d4f55 |
line wrap: on
line diff
--- a/include/begin_code.h Tue Jan 04 19:06:23 2005 +0000 +++ b/include/begin_code.h Sat Jan 08 23:13:01 2005 +0000 @@ -63,7 +63,7 @@ /* By default SDL uses the C calling convention */ #ifndef SDLCALL -#ifdef WIN32 +#if defined(WIN32) && !defined(__GNUC__) #define SDLCALL __cdecl #else #define SDLCALL