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 # define SDL_UNUSED __attribute__((unused))
54 # if defined(__WIN32__) || defined(__WINRT__)
59 # define DECLSPEC __declspec(dllimport)
62 # define DECLSPEC __declspec(dllexport)
65 # if defined(__GNUC__) && __GNUC__ >= 4
66 # define DECLSPEC __attribute__ ((visibility("default")))
75 #if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
76 #define SDLCALL __cdecl
93 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
95 #pragma warning(disable: 4103)
109 #if defined(__GNUC__)
110 #define SDL_INLINE __inline__
111 #elif defined(_MSC_VER) || defined(__BORLANDC__) || \
112 defined(__DMC__) || defined(__SC__) || \
113 defined(__WATCOMC__) || defined(__LCC__) || \
115 #define SDL_INLINE __inline
117 #define __inline__ __inline
120 #define SDL_INLINE inline
122 #define __inline__ inline
127 #ifndef SDL_FORCE_INLINE
128 #if defined(_MSC_VER)
129 #define SDL_FORCE_INLINE __forceinline
130 #elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
131 #define SDL_FORCE_INLINE __attribute__((always_inline)) static __inline__
133 #define SDL_FORCE_INLINE static SDL_INLINE
138 #if !defined(__MACH__)
143 #define NULL ((void *)0)