changeset 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 cca9aeb2934f
children 0f3aa6ab3341
files include/begin_code.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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