include/begin_code.h
changeset 3620 838fcbc09c68
parent 3618 276a6474a449
child 3697 f7b03b6838cb
     1.1 --- a/include/begin_code.h	Wed Jan 06 21:04:11 2010 +0000
     1.2 +++ b/include/begin_code.h	Thu Jan 07 04:38:58 2010 +0000
     1.3 @@ -52,12 +52,6 @@
     1.4  #  else
     1.5  #   define DECLSPEC	__declspec(dllexport)
     1.6  #  endif
     1.7 -# elif defined(__OS2__)
     1.8 -#   ifdef BUILD_SDL
     1.9 -#    define DECLSPEC    __declspec(dllexport)
    1.10 -#   else
    1.11 -#    define DECLSPEC
    1.12 -#   endif
    1.13  # else
    1.14  #  if defined(__GNUC__) && __GNUC__ >= 4
    1.15  #   define DECLSPEC	__attribute__ ((visibility("default")))
    1.16 @@ -69,18 +63,11 @@
    1.17  
    1.18  /* By default SDL uses the C calling convention */
    1.19  #ifndef SDLCALL
    1.20 -# if defined(__WIN32__) && !defined(__GNUC__)
    1.21 -#  define SDLCALL __cdecl
    1.22 -# elif defined(__OS2__)
    1.23 -   /* Use the _System calling convention to be compatible with every OS/2
    1.24 -      compiler. (Please note that this used to be _cdecl for GCC, but that
    1.25 -      was a bug. Someone should go examine and fix the XFree86 integration
    1.26 -      instead. We shouldn't be passing SDLCALL function pointers between SDL
    1.27 -      and XFree86!) */
    1.28 -#  define SDLCALL _System
    1.29 -# else
    1.30 -#  define SDLCALL
    1.31 -# endif
    1.32 +#if defined(__WIN32__) && !defined(__GNUC__)
    1.33 +#define SDLCALL __cdecl
    1.34 +#else
    1.35 +#define SDLCALL
    1.36 +#endif
    1.37  #endif /* SDLCALL */
    1.38  
    1.39  /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */