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__) || defined(__WINRT__)
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(__WINRT__)) && !defined(__GNUC__)
70 #define SDLCALL __cdecl
87 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__)
89 #pragma warning(disable: 4103)
103 #if defined(__GNUC__)
104 #define SDL_INLINE __inline__
105 #elif defined(_MSC_VER) || defined(__BORLANDC__) || \
106 defined(__DMC__) || defined(__SC__) || \
107 defined(__WATCOMC__) || defined(__LCC__) || \
109 #define SDL_INLINE __inline
111 #define __inline__ __inline
114 #define SDL_INLINE inline
116 #define __inline__ inline
121 #ifndef SDL_FORCE_INLINE
122 #if defined(_MSC_VER)
123 #define SDL_FORCE_INLINE __forceinline
124 #elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
125 #define SDL_FORCE_INLINE __attribute__((always_inline)) static __inline__
127 #define SDL_FORCE_INLINE static SDL_INLINE
132 #if !defined(__MACH__)
137 #define NULL ((void *)0)