Go to the documentation of this file.
32 #error Nested inclusion of begin_code.h
36 #ifndef SDL_DEPRECATED
38 # define SDL_DEPRECATED __attribute__((deprecated))
40 # define SDL_DEPRECATED
46 # if defined(__WIN32__)
51 # define DECLSPEC __declspec(dllimport)
54 # define DECLSPEC __declspec(dllexport)
57 # if defined(__GNUC__) && __GNUC__ >= 4
58 # define DECLSPEC __attribute__ ((visibility("default")))
59 # elif defined(__GNUC__) && __GNUC__ >= 2
60 # define DECLSPEC __declspec(dllexport)
69 #if defined(__WIN32__) && !defined(__GNUC__)
70 #define SDLCALL __cdecl
87 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
89 #pragma warning(disable: 4103)
103 #ifndef SDL_INLINE_OKAY
105 #define SDL_INLINE_OKAY
108 #if defined(_MSC_VER) || defined(__BORLANDC__) || \
109 defined(__DMC__) || defined(__SC__) || \
110 defined(__WATCOMC__) || defined(__LCC__) || \
113 #define __inline__ __inline
115 #define SDL_INLINE_OKAY
117 #if !defined(__MRC__) && !defined(_SGI_SOURCE)
119 #define __inline__ inline
121 #define SDL_INLINE_OKAY
131 #ifndef SDL_INLINE_OKAY
135 #ifndef SDL_FORCE_INLINE
136 #if defined(_MSC_VER)
137 #define SDL_FORCE_INLINE __forceinline
138 #elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
139 #define SDL_FORCE_INLINE __attribute__((always_inline)) static inline
141 #define SDL_FORCE_INLINE static __inline__
146 #if !defined(__MACH__)
151 #define NULL ((void *)0)