6161
6262{ $I jedi.inc}
6363
64- (*
65- * If you get a compiler error with missing file
66- * just create a file namend "sdl2_cfg.inc" in your project folder and
67- * insert the following content:
68- *
69- * ---------- Content of file ----------
70-
71- {*
72- * set this define if you want to use runtime loading instead of static linking
73- * ! Attention !
74- * Not all functions are "ported" yet, so use is on own risk
75- * port missing functions.
76- *}
77- {.$DEFINE SDL_RUNTIME_LOADING}
78-
79- * ---------- End content of file ----------
80- *
81- * ! Attention !
82- * If you use the runtime loading feature, don't forget to call the SDL_LoadLib
83- * function.
84- *)
64+ {
65+ Enable the following line, or set SDL_RUNTIME_LOADING in your project define
66+ settings. If set the SDL2 library can be loaded at runtime instead of being
67+ statically linked into the project. After that you need to call the
68+ SDL_LoadLib function by your application before using any SDL2 library calls.
69+
70+ }
71+ // {$DEFINE SDL_RUNTIME_LOADING}
8572
86- { $I sdl2_cfg.inc}
8773
8874interface
8975
@@ -149,7 +135,7 @@ interface
149135{ $I ctypes.inc} // C data types
150136
151137 { SDL2 version of the represented header file}
152- { $ifndef SDL_RUNTIME_LOADING}
138+ { $IFNDEF SDL_RUNTIME_LOADING}
153139
154140{ $I sdlstdinc.inc}
155141{ $I sdlversion.inc} // 2.0.14
@@ -195,7 +181,7 @@ interface
195181{ $I sdlsystem.inc} // 2.24.0
196182{ $I sdl.inc} // 2.0.14
197183
198- { $else }
184+ { $ELSE }
199185
200186{ $I runtime/sdlstdinc.inc}
201187{ $I runtime/sdlversion.inc} // 2.0.14
@@ -241,10 +227,6 @@ interface
241227{ $I runtime/sdlsystem.inc} // 2.24.0
242228{ $I runtime/sdl.inc} // 2.0.14
243229
244- { $endif}
245-
246- { $ifdef SDL_RUNTIME_LOADING}
247-
248230// Loads the SDL library dynamically at runtime.
249231//
250232// Note:
@@ -271,7 +253,7 @@ function SDL_LoadLib(LibFilename: string): Boolean;
271253// pointers become invalid.
272254procedure SDL_UnLoadLib ();
273255
274- { $endif }
256+ { $ENDIF }
275257
276258implementation
277259
0 commit comments