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 10253652d111416c
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
     1.1 --- a/include/begin_code.h	Tue Jan 04 19:06:23 2005 +0000
     1.2 +++ b/include/begin_code.h	Sat Jan 08 23:13:01 2005 +0000
     1.3 @@ -63,7 +63,7 @@
     1.4  
     1.5  /* By default SDL uses the C calling convention */
     1.6  #ifndef SDLCALL
     1.7 -#ifdef WIN32
     1.8 +#if defined(WIN32) && !defined(__GNUC__)
     1.9  #define SDLCALL __cdecl
    1.10  #else
    1.11  #define SDLCALL