comparison include/begin_code.h @ 3269:a67a961e2171

Removed outdated OS/2 support
author Sam Lantinga <slouken@libsdl.org>
date Sat, 19 Sep 2009 06:43:45 +0000
parents 99210400e8b9
children 245a7d79577c
comparison
equal deleted inserted replaced
3268:82ce350be859 3269:a67a961e2171
47 # define DECLSPEC __declspec(dllimport) 47 # define DECLSPEC __declspec(dllimport)
48 # endif 48 # endif
49 # else 49 # else
50 # define DECLSPEC __declspec(dllexport) 50 # define DECLSPEC __declspec(dllexport)
51 # endif 51 # endif
52 # elif defined(__OS2__)
53 # ifdef __WATCOMC__
54 # ifdef BUILD_SDL
55 # define DECLSPEC __declspec(dllexport)
56 # else
57 # define DECLSPEC
58 # endif
59 # else
60 # define DECLSPEC
61 # endif
62 # else 52 # else
63 # if defined(__GNUC__) && __GNUC__ >= 4 53 # if defined(__GNUC__) && __GNUC__ >= 4
64 # define DECLSPEC __attribute__ ((visibility("default"))) 54 # define DECLSPEC __attribute__ ((visibility("default")))
65 # else 55 # else
66 # define DECLSPEC 56 # define DECLSPEC
71 /* By default SDL uses the C calling convention */ 61 /* By default SDL uses the C calling convention */
72 #ifndef SDLCALL 62 #ifndef SDLCALL
73 #if defined(__WIN32__) && !defined(__GNUC__) 63 #if defined(__WIN32__) && !defined(__GNUC__)
74 #define SDLCALL __cdecl 64 #define SDLCALL __cdecl
75 #else 65 #else
76 #ifdef __OS2__
77 /* But on OS/2, we use the _System calling convention */
78 /* to be compatible with every compiler */
79 #define SDLCALL _System
80 #else
81 #define SDLCALL 66 #define SDLCALL
82 #endif
83 #endif 67 #endif
84 #endif /* SDLCALL */ 68 #endif /* SDLCALL */
85 69
86 /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */ 70 /* Removed DECLSPEC on Symbian OS because SDL cannot be a DLL in EPOC */
87 #ifdef __SYMBIAN32__ 71 #ifdef __SYMBIAN32__