comparison include/begin_code.h @ 1190:173c063d4f55

OS/2 port! This was mostly, if not entirely, written by "Doodle" and "Caetano": doodle@scenergy.dfmk.hu daniel@caetano.eng.br --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 23 Nov 2005 07:29:56 +0000
parents 3652d111416c
children d910939febfa
comparison
equal deleted inserted replaced
1189:c96b326b90ba 1190:173c063d4f55
54 # endif 54 # endif
55 # else 55 # else
56 # define DECLSPEC __declspec(dllexport) 56 # define DECLSPEC __declspec(dllexport)
57 # endif 57 # endif
58 # else 58 # else
59 # ifdef __OS2__
60 # ifdef __WATCOMC__
61 # ifdef BUILD_SDL
62 # define DECLSPEC __declspec(dllexport)
63 # else
59 # define DECLSPEC 64 # define DECLSPEC
65 # endif
66 # else
67 # define DECLSPEC
68 # endif
69 # else
70 # define DECLSPEC
71 # endif
60 # endif 72 # endif
61 # endif 73 # endif
62 #endif 74 #endif
63 75
64 /* By default SDL uses the C calling convention */ 76 /* By default SDL uses the C calling convention */
65 #ifndef SDLCALL 77 #ifndef SDLCALL
66 #if defined(WIN32) && !defined(__GNUC__) 78 #if defined(WIN32) && !defined(__GNUC__)
67 #define SDLCALL __cdecl 79 #define SDLCALL __cdecl
68 #else 80 #else
81 #ifdef __OS2__
82 /* But on OS/2, we use the _System calling convention */
83 /* to be compatible with every compiler */
84 #define SDLCALL _System
85 #else
69 #define SDLCALL 86 #define SDLCALL
87 #endif
70 #endif 88 #endif
71 #endif /* SDLCALL */ 89 #endif /* SDLCALL */
72 90
73 /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */ 91 /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
74 #ifdef __SYMBIAN32__ 92 #ifdef __SYMBIAN32__