Avoid gcc parse errors on Win32. This is fine in general because gcc uses
authorSam Lantinga <slouken@libsdl.org>
Sat, 08 Jan 2005 23:13:01 +0000
changeset 1025 3652d111416c
parent 1024 cca9aeb2934f
child 1026 0f3aa6ab3341
Avoid gcc parse errors on Win32. This is fine in general because gcc uses the cdecl calling convention by default.
include/begin_code.h
--- 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