From aa6dff1be1467fe63faa64976e675cbb404c9cd7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 8 Jan 2005 23:13:01 +0000 Subject: [PATCH] Avoid gcc parse errors on Win32. This is fine in general because gcc uses the cdecl calling convention by default. --- include/begin_code.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/begin_code.h b/include/begin_code.h index 664354c30..925d37909 100644 --- a/include/begin_code.h +++ b/include/begin_code.h @@ -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