00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00034 #ifdef _begin_code_h
00035 #error Nested inclusion of begin_code.h
00036 #endif
00037 #define _begin_code_h
00038
00043 #ifndef DECLSPEC
00044 # if defined(__BEOS__) || defined(__HAIKU__)
00045 # if defined(__GNUC__)
00046 # define DECLSPEC __declspec(dllexport)
00047 # else
00048 # define DECLSPEC __declspec(export)
00049 # endif
00050 # elif defined(__WIN32__)
00051 # ifdef __BORLANDC__
00052 # ifdef BUILD_SDL
00053 # define DECLSPEC
00054 # else
00055 # define DECLSPEC __declspec(dllimport)
00056 # endif
00057 # else
00058 # define DECLSPEC __declspec(dllexport)
00059 # endif
00060 # elif defined(__OS2__)
00061 # ifdef __WATCOMC__
00062 # ifdef BUILD_SDL
00063 # define DECLSPEC __declspec(dllexport)
00064 # else
00065 # define DECLSPEC
00066 # endif
00067 # elif defined (__GNUC__) && __GNUC__ < 4
00068 #
00069 #
00070 #
00071 # ifdef BUILD_SDL
00072 # define DECLSPEC __declspec(dllexport)
00073 # else
00074 # define DECLSPEC
00075 # endif
00076 # else
00077 # define DECLSPEC
00078 # endif
00079 # else
00080 # if defined(__GNUC__) && __GNUC__ >= 4
00081 # define DECLSPEC __attribute__ ((visibility("default")))
00082 # else
00083 # define DECLSPEC
00084 # endif
00085 # endif
00086 #endif
00087
00092 #ifndef SDLCALL
00093 # if defined(__WIN32__) && !defined(__GNUC__)
00094 # define SDLCALL __cdecl
00095 # elif defined(__OS2__)
00096 # if defined (__GNUC__) && __GNUC__ < 4
00097 #
00098 #
00099 #
00100 # define SDLCALL _cdecl
00101 # else
00102 #
00103 #
00104 # define SDLCALL _System
00105 # endif
00106 # else
00107 # define SDLCALL
00108 # endif
00109 #endif
00110
00111 #ifdef __SYMBIAN32__
00112 #ifndef EKA2
00113 #undef DECLSPEC
00114 #define DECLSPEC
00115 #elif !defined(__WINS__)
00116 #undef DECLSPEC
00117 #define DECLSPEC __declspec(dllexport)
00118 #endif
00119 #endif
00120
00128 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
00129 #ifdef _MSC_VER
00130 #pragma warning(disable: 4103)
00131 #endif
00132 #ifdef __BORLANDC__
00133 #pragma nopackwarning
00134 #endif
00135 #pragma pack(push,4)
00136 #elif (defined(__MWERKS__) && defined(__MACOS__))
00137 #pragma options align=mac68k4byte
00138 #pragma enumsalwaysint on
00139 #endif
00140
00145 #ifndef SDL_INLINE_OKAY
00146 #ifdef __GNUC__
00147 #define SDL_INLINE_OKAY
00148 #else
00149
00150 #if defined(_MSC_VER) || defined(__BORLANDC__) || \
00151 defined(__DMC__) || defined(__SC__) || \
00152 defined(__WATCOMC__) || defined(__LCC__) || \
00153 defined(__DECC) || defined(__EABI__)
00154 #ifndef __inline__
00155 #define __inline__ __inline
00156 #endif
00157 #define SDL_INLINE_OKAY
00158 #else
00159 #if !defined(__MRC__) && !defined(_SGI_SOURCE)
00160 #ifndef __inline__
00161 #define __inline__ inline
00162 #endif
00163 #define SDL_INLINE_OKAY
00164 #endif
00165 #endif
00166 #endif
00167 #endif
00168
00175 #ifndef SDL_INLINE_OKAY
00176 #define __inline__
00177 #endif
00178
00183 #if !defined(__MACH__)
00184 #ifndef NULL
00185 #ifdef __cplusplus
00186 #define NULL 0
00187 #else
00188 #define NULL ((void *)0)
00189 #endif
00190 #endif
00191 #endif