comparison include/begin_code.h @ 3620:838fcbc09c68

The OS/2 support has been removed, so we don't need this now.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 07 Jan 2010 04:38:58 +0000
parents 276a6474a449
children f7b03b6838cb
comparison
equal deleted inserted replaced
3619:07fbaf6ccb51 3620:838fcbc09c68
50 # define DECLSPEC __declspec(dllimport) 50 # define DECLSPEC __declspec(dllimport)
51 # endif 51 # endif
52 # else 52 # else
53 # define DECLSPEC __declspec(dllexport) 53 # define DECLSPEC __declspec(dllexport)
54 # endif 54 # endif
55 # elif defined(__OS2__)
56 # ifdef BUILD_SDL
57 # define DECLSPEC __declspec(dllexport)
58 # else
59 # define DECLSPEC
60 # endif
61 # else 55 # else
62 # if defined(__GNUC__) && __GNUC__ >= 4 56 # if defined(__GNUC__) && __GNUC__ >= 4
63 # define DECLSPEC __attribute__ ((visibility("default"))) 57 # define DECLSPEC __attribute__ ((visibility("default")))
64 # else 58 # else
65 # define DECLSPEC 59 # define DECLSPEC
67 # endif 61 # endif
68 #endif 62 #endif
69 63
70 /* By default SDL uses the C calling convention */ 64 /* By default SDL uses the C calling convention */
71 #ifndef SDLCALL 65 #ifndef SDLCALL
72 # if defined(__WIN32__) && !defined(__GNUC__) 66 #if defined(__WIN32__) && !defined(__GNUC__)
73 # define SDLCALL __cdecl 67 #define SDLCALL __cdecl
74 # elif defined(__OS2__) 68 #else
75 /* Use the _System calling convention to be compatible with every OS/2 69 #define SDLCALL
76 compiler. (Please note that this used to be _cdecl for GCC, but that 70 #endif
77 was a bug. Someone should go examine and fix the XFree86 integration
78 instead. We shouldn't be passing SDLCALL function pointers between SDL
79 and XFree86!) */
80 # define SDLCALL _System
81 # else
82 # define SDLCALL
83 # endif
84 #endif /* SDLCALL */ 71 #endif /* SDLCALL */
85 72
86 /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */ 73 /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
87 #ifdef __SYMBIAN32__ 74 #ifdef __SYMBIAN32__
88 #undef DECLSPEC 75 #undef DECLSPEC