2 Simple DirectMedia Layer
3 Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
5 Pascal-Header-Conversion
6 Copyright (c) 2012/13 Tim Blume aka End
8 sdl.inc is based on the files:
12 "sdl_config_windows.h",
14 it defines some variables for several Pascal-Compilers and OS-versions.
16 It is based on mine updated version of jedi-sdl.inc from the SDL 1.2 Headers,
17 they can be found at delphigl.com or on my github-repository:
19 https://github.com/ev1313/
21 This software is provided 'as-is', without any express or implied
22 warranty. In no event will the authors be held liable for any damages
23 arising from the use of this software.
25 Permission is granted to anyone to use this software for any purpose,
26 including commercial applications, and to alter it and redistribute it
27 freely, subject to the following restrictions:
29 1. The origin of this software must not be misrepresented; you must not
30 claim that you wrote the original software. If you use this software
31 in a product, an acknowledgment in the product documentation would be
32 appreciated but is not required.
33 2. Altered source versions must be plainly marked as such, and must not be
34 misrepresented as being the original software.
35 3. This notice may not be removed or altered from any source distribution.
41 v. 1.63-stable; 16.09.13: since GPC isn't supported anymore, i've deleted it from here, too.
42 v. 1.22-alpha; 24.07.13: fixed some bugs. special thanks to kotai from pascalgamedevelopment.com
43 v. 1.00-alpha; 05.07.13: Initial Alpha-Release
46 {.$define Debug} { uncomment for debugging }
50 {$F+,D+,Q-,L+,R+,I-,S+,Y+,A+}
75 {$DEFINE Delphi} {Delphi 1.x}
83 {$DEFINE Delphi} {Delphi 2.x}
89 {$DEFINE Delphi} {Delphi 3.x}
95 {$DEFINE Delphi} {C++ Builder 1.x}
100 {$DEFINE Delphi} {C++ Builder 3.x}
105 {$DEFINE Delphi} {Delphi 4.x}
112 {$DEFINE Delphi} {Delphi / C++ Builder 5.x}
120 {$DEFINE Delphi} {Delphi / C++ Builder 6.x}
129 {$DEFINE Delphi} {Delphi 7.x}
134 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
142 {$DEFINE Delphi} {Delphi 8.x}
155 {$DEFINE Delphi} {Delphi / C++ Builder 2005}
162 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
170 {$DEFINE Delphi} {Delphi / C++ Builder 2006 / 2007}
178 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
186 {$DEFINE Delphi} {Delphi / C++ Builder 2007}
195 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
203 {$DEFINE Delphi} {Delphi / C++ Builder 2007 }
213 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
221 {$DEFINE Delphi} {Delphi / C++ Builder 2009 }
232 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
240 {$DEFINE Delphi} {Delphi / C++ Builder 2010}
252 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
260 {$DEFINE Delphi} {Delphi / C++ Builder XE}
273 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
281 {$DEFINE Delphi} {Delphi / C++ Builder XE2}
295 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
303 {$DEFINE Delphi} {Delphi / C++ Builder XE4}
318 {$WARN UNSAFE_TYPE OFF} {Disable warning for unsafe types}
326 {$ifdef VER140} // Kylix 1 & 2
333 {$ifdef VER150} // Kylix 3
342 {*************** define 16/32/64 Bit ********************}
362 {$IFDEF VirtualPascal} { Virtual Pascal 2.x }
363 {$DEFINE Delphi} { Use Delphi Syntax }
366 {$ENDIF VirtualPascal}
369 {$DEFINE USE_STDCALL}
383 {$MODE Delphi} { use Delphi compatibility mode }
385 {$PACKRECORDS C} // Added for record
386 {$MACRO ON} // Added For OpenGL
408 {$K+} {smart callbacks}
423 {$DEFINE USE_STDCALL}
436 {$A+} // Word alignment data
437 {$OA+} // Objects and structures align
445 {$ENDIF} { use 16-bit assembler! }
448 { ************************** dos/dos-like platforms **************}
457 {$DEFINE Can_Use_DLL}
461 {$DEFINE Can_Use_DLL}
465 {$DEFINE Can_Use_DLL}
469 {$DEFINE Can_Use_DLL}
482 {*************** define LITTLE ENDIAN platforms ********************}
487 {$DEFINE ENDIAN_LITTLE}
495 {$IFDEF FPC_LITTLE_ENDIAN}