00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 #ifdef _begin_code_h
00030 #error Nested inclusion of begin_code.h
00031 #endif
00032 #define _begin_code_h
00033 
00034 
00035 #ifndef DECLSPEC
00036 # if defined(__BEOS__) || defined(__HAIKU__)
00037 #  if defined(__GNUC__)
00038 #   define DECLSPEC     __declspec(dllexport)
00039 #  else
00040 #   define DECLSPEC     __declspec(export)
00041 #  endif
00042 # elif defined(__WIN32__)
00043 #  ifdef __BORLANDC__
00044 #   ifdef BUILD_SDL
00045 #    define DECLSPEC
00046 #   else
00047 #    define DECLSPEC    __declspec(dllimport)
00048 #   endif
00049 #  else
00050 #   define DECLSPEC     __declspec(dllexport)
00051 #  endif
00052 # else
00053 #  if defined(__GNUC__) && __GNUC__ >= 4
00054 #   define DECLSPEC     __attribute__ ((visibility("default")))
00055 #  else
00056 #   define DECLSPEC
00057 #  endif
00058 # endif
00059 #endif
00060 
00061 
00062 #ifndef SDLCALL
00063 #if defined(__WIN32__) && !defined(__GNUC__)
00064 #define SDLCALL __cdecl
00065 #else
00066 #define SDLCALL
00067 #endif
00068 #endif 
00069 
00070 
00071 #ifdef __SYMBIAN32__
00072 #undef DECLSPEC
00073 #define DECLSPEC
00074 #endif 
00075 
00076 
00077 
00078 
00079 
00080 
00081 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
00082 #ifdef _MSC_VER
00083 #pragma warning(disable: 4103)
00084 #endif
00085 #ifdef __BORLANDC__
00086 #pragma nopackwarning
00087 #endif
00088 #pragma pack(push,4)
00089 #endif 
00090 
00091 
00092 #ifndef SDL_INLINE_OKAY
00093 #ifdef __GNUC__
00094 #define SDL_INLINE_OKAY
00095 #else
00096 
00097 #if defined(_MSC_VER) || defined(__BORLANDC__) || \
00098     defined(__DMC__) || defined(__SC__) || \
00099     defined(__WATCOMC__) || defined(__LCC__) || \
00100     defined(__DECC)
00101 #ifndef __inline__
00102 #define __inline__      __inline
00103 #endif
00104 #define SDL_INLINE_OKAY
00105 #else
00106 #if !defined(__MRC__) && !defined(_SGI_SOURCE)
00107 #ifndef __inline__
00108 #define __inline__ inline
00109 #endif
00110 #define SDL_INLINE_OKAY
00111 #endif 
00112 #endif 
00113 #endif 
00114 #endif 
00115 
00116 
00117 
00118 
00119 
00120 #ifndef SDL_INLINE_OKAY
00121 #define __inline__
00122 #endif
00123 
00124 
00125 #if !defined(__MACH__)
00126 #ifndef NULL
00127 #ifdef __cplusplus
00128 #define NULL 0
00129 #else
00130 #define NULL ((void *)0)
00131 #endif
00132 #endif 
00133 #endif