123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- #ifdef _begin_code_h
- #error Nested inclusion of begin_code.h
- #endif
- #define _begin_code_h
- #ifndef DECLSPEC
- # if defined(__BEOS__) || defined(__HAIKU__)
- # if defined(__GNUC__)
- # define DECLSPEC __declspec(dllexport)
- # else
- # define DECLSPEC __declspec(export)
- # endif
- # elif defined(__WIN32__)
- # ifdef __BORLANDC__
- # ifdef BUILD_SDL
- # define DECLSPEC
- # else
- # define DECLSPEC __declspec(dllimport)
- # endif
- # else
- # define DECLSPEC __declspec(dllexport)
- # endif
- # else
- # if defined(__GNUC__) && __GNUC__ >= 4
- # define DECLSPEC __attribute__ ((visibility("default")))
- # else
- # define DECLSPEC
- # endif
- # endif
- #endif
- #ifndef SDLCALL
- #if defined(__WIN32__) && !defined(__GNUC__)
- #define SDLCALL __cdecl
- #else
- #define SDLCALL
- #endif
- #endif
- #ifdef __SYMBIAN32__
- #undef DECLSPEC
- #define DECLSPEC
- #endif
- #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
- #ifdef _MSC_VER
- #pragma warning(disable: 4103)
- #endif
- #ifdef __BORLANDC__
- #pragma nopackwarning
- #endif
- #ifdef _M_X64
- #pragma pack(push,8)
- #else
- #pragma pack(push,4)
- #endif
- #endif
- #ifndef SDL_INLINE_OKAY
- #ifdef __GNUC__
- #define SDL_INLINE_OKAY
- #else
- #if defined(_MSC_VER) || defined(__BORLANDC__) || \
- defined(__DMC__) || defined(__SC__) || \
- defined(__WATCOMC__) || defined(__LCC__) || \
- defined(__DECC)
- #ifndef __inline__
- #define __inline__ __inline
- #endif
- #define SDL_INLINE_OKAY
- #else
- #if !defined(__MRC__) && !defined(_SGI_SOURCE)
- #ifndef __inline__
- #define __inline__ inline
- #endif
- #define SDL_INLINE_OKAY
- #endif
- #endif
- #endif
- #endif
- #ifndef SDL_INLINE_OKAY
- #define __inline__
- #endif
- #ifndef SDL_FORCE_INLINE
- #if defined(_MSC_VER)
- #define SDL_FORCE_INLINE __forceinline
- #elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
- #define SDL_FORCE_INLINE __attribute__((always_inline)) static inline
- #else
- #define SDL_FORCE_INLINE static __inline__
- #endif
- #endif
- #if !defined(__MACH__)
- #ifndef NULL
- #ifdef __cplusplus
- #define NULL 0
- #else
- #define NULL ((void *)0)
- #endif
- #endif
- #endif
|