# HG changeset patch # User Sam Lantinga # Date 1262839138 0 # Node ID 838fcbc09c68c371be51cadbb7a99e4a1dab0e28 # Parent 07fbaf6ccb518222cbabc9a24c2e9c4432bd2686 The OS/2 support has been removed, so we don't need this now. diff -r 07fbaf6ccb51 -r 838fcbc09c68 include/begin_code.h --- a/include/begin_code.h Wed Jan 06 21:04:11 2010 +0000 +++ b/include/begin_code.h Thu Jan 07 04:38:58 2010 +0000 @@ -52,12 +52,6 @@ # else # define DECLSPEC __declspec(dllexport) # endif -# elif defined(__OS2__) -# ifdef BUILD_SDL -# define DECLSPEC __declspec(dllexport) -# else -# define DECLSPEC -# endif # else # if defined(__GNUC__) && __GNUC__ >= 4 # define DECLSPEC __attribute__ ((visibility("default"))) @@ -69,18 +63,11 @@ /* By default SDL uses the C calling convention */ #ifndef SDLCALL -# if defined(__WIN32__) && !defined(__GNUC__) -# define SDLCALL __cdecl -# elif defined(__OS2__) - /* Use the _System calling convention to be compatible with every OS/2 - compiler. (Please note that this used to be _cdecl for GCC, but that - was a bug. Someone should go examine and fix the XFree86 integration - instead. We shouldn't be passing SDLCALL function pointers between SDL - and XFree86!) */ -# define SDLCALL _System -# else -# define SDLCALL -# endif +#if defined(__WIN32__) && !defined(__GNUC__) +#define SDLCALL __cdecl +#else +#define SDLCALL +#endif #endif /* SDLCALL */ /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */