Skip to content

Latest commit

 

History

History
317 lines (264 loc) · 7.6 KB

SDL20_include_wrapper.h

File metadata and controls

317 lines (264 loc) · 7.6 KB
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
Simple DirectMedia Layer
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
/*
* This file #includes the proper SDL 2.0 headers, but #defines a whole
* bunch of stuff so we don't conflict with symbols we plan to offer with
* the 1.2 signatures. Ugly business.
*/
#ifndef _INCL_SDL20_INCLUDE_WRAPPER_H_
#define _INCL_SDL20_INCLUDE_WRAPPER_H_
Apr 14, 2013
Apr 14, 2013
31
#define SDL_ReportAssertion IGNORE_THIS_VERSION_OF_SDL_ReportAssertion
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#define SDL_SetError IGNORE_THIS_VERSION_OF_SDL_SetError
#define SDL_PollEvent IGNORE_THIS_VERSION_OF_SDL_PollEvent
#define SDL_PushEvent IGNORE_THIS_VERSION_OF_SDL_PushEvent
#define SDL_EventState IGNORE_THIS_VERSION_OF_SDL_EventState
#define SDL_PeepEvents IGNORE_THIS_VERSION_OF_SDL_PeepEvents
#define SDL_WaitEvent IGNORE_THIS_VERSION_OF_SDL_WaitEvent
#define SDL_SetEventFilter IGNORE_THIS_VERSION_OF_SDL_SetEventFilter
#define SDL_GetEventFilter IGNORE_THIS_VERSION_OF_SDL_GetEventFilter
#define SDL_CreateRGBSurface IGNORE_THIS_VERSION_OF_SDL_CreateRGBSurface
#define SDL_CreateRGBSurfaceFrom IGNORE_THIS_VERSION_OF_SDL_CreateRGBSurfaceFrom
#define SDL_FreeSurface IGNORE_THIS_VERSION_OF_SDL_FreeSurface
#define SDL_SetClipRect IGNORE_THIS_VERSION_OF_SDL_SetClipRect
#define SDL_GetClipRect IGNORE_THIS_VERSION_OF_SDL_GetClipRect
#define SDL_FillRect IGNORE_THIS_VERSION_OF_SDL_FillRect
#define SDL_GetRGB IGNORE_THIS_VERSION_OF_SDL_GetRGB
#define SDL_GetRGBA IGNORE_THIS_VERSION_OF_SDL_GetRGBA
#define SDL_MapRGB IGNORE_THIS_VERSION_OF_SDL_MapRGB
#define SDL_MapRGBA IGNORE_THIS_VERSION_OF_SDL_MapRGBA
#define SDL_CreateCursor IGNORE_THIS_VERSION_OF_SDL_CreateCursor
#define SDL_SetCursor IGNORE_THIS_VERSION_OF_SDL_SetCursor
#define SDL_GetCursor IGNORE_THIS_VERSION_OF_SDL_GetCursor
#define SDL_FreeCursor IGNORE_THIS_VERSION_OF_SDL_FreeCursor
#define SDL_UpdateRect IGNORE_THIS_VERSION_OF_SDL_UpdateRect
#define SDL_UpdateRects IGNORE_THIS_VERSION_OF_SDL_UpdateRects
#define SDL_GetMouseState IGNORE_THIS_VERSION_OF_SDL_GetMouseState
#define SDL_GL_SetAttribute IGNORE_THIS_VERSION_OF_SDL_GL_SetAttribute
#define SDL_GL_GetAttribute IGNORE_THIS_VERSION_OF_SDL_GL_GetAttribute
#define SDL_CreateThread IGNORE_THIS_VERSION_OF_SDL_CreateThread
#define SDL_AddTimer IGNORE_THIS_VERSION_OF_SDL_AddTimer
#define SDL_RemoveTimer IGNORE_THIS_VERSION_OF_SDL_RemoveTimer
#define SDL_AllocRW IGNORE_THIS_VERSION_OF_SDL_AllocRW
#define SDL_FreeRW IGNORE_THIS_VERSION_OF_SDL_FreeRW
#define SDL_RWFromFile IGNORE_THIS_VERSION_OF_SDL_RWFromFile
#define SDL_RWFromFP IGNORE_THIS_VERSION_OF_SDL_RWFromFP
#define SDL_RWFromMem IGNORE_THIS_VERSION_OF_SDL_RWFromMem
#define SDL_RWFromConstMem IGNORE_THIS_VERSION_OF_SDL_RWFromConstMem
#define SDL_ReadLE16 IGNORE_THIS_VERSION_OF_SDL_ReadLE16
#define SDL_ReadBE16 IGNORE_THIS_VERSION_OF_SDL_ReadBE16
#define SDL_ReadLE32 IGNORE_THIS_VERSION_OF_SDL_ReadLE32
#define SDL_ReadBE32 IGNORE_THIS_VERSION_OF_SDL_ReadBE32
#define SDL_ReadLE64 IGNORE_THIS_VERSION_OF_SDL_ReadLE64
#define SDL_ReadBE64 IGNORE_THIS_VERSION_OF_SDL_ReadBE64
#define SDL_WriteLE16 IGNORE_THIS_VERSION_OF_SDL_WriteLE16
#define SDL_WriteBE16 IGNORE_THIS_VERSION_OF_SDL_WriteBE16
#define SDL_WriteLE32 IGNORE_THIS_VERSION_OF_SDL_WriteLE32
#define SDL_WriteBE32 IGNORE_THIS_VERSION_OF_SDL_WriteBE32
#define SDL_WriteLE64 IGNORE_THIS_VERSION_OF_SDL_WriteLE64
#define SDL_WriteBE64 IGNORE_THIS_VERSION_OF_SDL_WriteBE64
#define SDL_GetThreadID IGNORE_THIS_VERSION_OF_SDL_GetThreadID
#define SDL_ThreadID IGNORE_THIS_VERSION_OF_SDL_ThreadID
#define SDL_JoystickName IGNORE_THIS_VERSION_OF_SDL_JoystickName
#define SDL_LoadBMP_RW IGNORE_THIS_VERSION_OF_SDL_LoadBMP_RW
#define SDL_SaveBMP_RW IGNORE_THIS_VERSION_OF_SDL_SaveBMP_RW
#define SDL_LoadWAV_RW IGNORE_THIS_VERSION_OF_SDL_LoadWAV_RW
#include "SDL.h"
#include "SDL_syswm.h"
Apr 14, 2013
Apr 14, 2013
90
#undef SDL_ReportAssertion
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
#undef SDL_SetError
#undef SDL_PollEvent
#undef SDL_PushEvent
#undef SDL_EventState
#undef SDL_PeepEvents
#undef SDL_WaitEvent
#undef SDL_SetEventFilter
#undef SDL_GetEventFilter
#undef SDL_CreateRGBSurface
#undef SDL_CreateRGBSurfaceFrom
#undef SDL_FreeSurface
#undef SDL_SetClipRect
#undef SDL_GetClipRect
#undef SDL_FillRect
#undef SDL_GetRGB
#undef SDL_GetRGBA
#undef SDL_MapRGB
#undef SDL_MapRGBA
#undef SDL_CreateCursor
#undef SDL_SetCursor
#undef SDL_GetCursor
#undef SDL_FreeCursor
#undef SDL_UpdateRect
#undef SDL_UpdateRects
#undef SDL_GetMouseState
#undef SDL_GL_SetAttribute
#undef SDL_GL_GetAttribute
#undef SDL_CreateThread
#undef SDL_AddTimer
#undef SDL_RemoveTimer
#undef SDL_AllocRW
#undef SDL_FreeRW
#undef SDL_RWFromFile
#undef SDL_RWFromFP
#undef SDL_RWFromMem
#undef SDL_RWFromConstMem
#undef SDL_ReadLE16
#undef SDL_ReadBE16
#undef SDL_ReadLE32
#undef SDL_ReadBE32
#undef SDL_ReadLE64
#undef SDL_ReadBE64
#undef SDL_WriteLE16
#undef SDL_WriteBE16
#undef SDL_WriteLE32
#undef SDL_WriteBE32
#undef SDL_WriteLE64
#undef SDL_WriteBE64
#undef SDL_GetThreadID
#undef SDL_ThreadID
#undef SDL_JoystickName
#undef SDL_LoadBMP_RW
#undef SDL_SaveBMP_RW
#undef SDL_LoadWAV_RW
#ifdef SDL_malloc
#undef SDL_malloc
#endif
#ifdef SDL_calloc
#undef SDL_calloc
#endif
#ifdef SDL_realloc
#undef SDL_realloc
#endif
#ifdef SDL_free
#undef SDL_free
#endif
#ifdef SDL_getenv
#undef SDL_getenv
#endif
#ifdef SDL_qsort
#undef SDL_qsort
#endif
#ifdef SDL_memset
#undef SDL_memset
#endif
#ifdef SDL_memcpy
#undef SDL_memcpy
#endif
#ifdef SDL_revcpy
#undef SDL_revcpy
#endif
#ifdef SDL_memcmp
#undef SDL_memcmp
#endif
#ifdef SDL_strlen
#undef SDL_strlen
#endif
#ifdef SDL_strlcpy
#undef SDL_strlcpy
#endif
#ifdef SDL_strlcat
#undef SDL_strlcat
#endif
#ifdef SDL_strdup
#undef SDL_strdup
#endif
#ifdef SDL_strrev
#undef SDL_strrev
#endif
#ifdef SDL_strupr
#undef SDL_strupr
#endif
#ifdef SDL_strlwr
#undef SDL_strlwr
#endif
#ifdef SDL_strchr
#undef SDL_strchr
#endif
#ifdef SDL_strrchr
#undef SDL_strrchr
#endif
#ifdef SDL_strstr
#undef SDL_strstr
#endif
#ifdef SDL_ltoa
#undef SDL_ltoa
#endif
#ifdef SDL_ultoa
#undef SDL_ultoa
#endif
#ifdef SDL_strtol
#undef SDL_strtol
#endif
#ifdef SDL_strtoul
#undef SDL_strtoul
#endif
#ifdef SDL_lltoa
#undef SDL_lltoa
#endif
#ifdef SDL_ulltoa
#undef SDL_ulltoa
#endif
#ifdef SDL_strtoll
#undef SDL_strtoll
#endif
#ifdef SDL_strtoull
#undef SDL_strtoull
#endif
#ifdef SDL_strtod
#undef SDL_strtod
#endif
#ifdef SDL_strcmp
#undef SDL_strcmp
#endif
#ifdef SDL_strncmp
#undef SDL_strncmp
#endif
#ifdef SDL_strcasecmp
#undef SDL_strcasecmp
#endif
#ifdef SDL_strncasecmp
#undef SDL_strncasecmp
#endif
#ifdef SDL_sscanf
#undef SDL_sscanf
#endif
#ifdef SDL_snprintf
#undef SDL_snprintf
#endif
#ifdef SDL_vsnprintf
#undef SDL_vsnprintf
#endif
#ifdef SDL_iconv_open
#undef SDL_iconv_open
#endif
#ifdef SDL_iconv_close
#undef SDL_iconv_close
#endif
#ifdef SDL_iconv
#undef SDL_iconv
#endif
#ifdef SDL_iconv_string
#undef SDL_iconv_string
#endif
Apr 14, 2013
Apr 14, 2013
306
307
308
309
310
311
312
313
#ifdef SDL_atoi
#undef SDL_atoi
#endif
#ifdef SDL_setenv
#undef SDL_setenv
#endif
314
315
316
#endif
/* vi: set ts=4 sw=4 expandtab: */