--- a/hedgewars/SDLh.pas Mon Jul 31 11:31:31 2006 +0000
+++ b/hedgewars/SDLh.pas Sat Aug 05 20:57:36 2006 +0000
@@ -197,6 +197,7 @@
TByteArray = array[0..32767] of Byte;
PSDL_Thread = Pointer;
+ PSDL_mutex = Pointer;
function SDL_Init(flags: Longword): Integer; cdecl; external SDLLibName;
procedure SDL_Quit; cdecl; external SDLLibName;
@@ -243,6 +244,10 @@
function SDL_CreateThread(fn: pointer; data: pointer): PSDL_Thread; cdecl; external SDLLibName;
procedure SDL_WaitThread(thread: PSDL_Thread; status: PInteger); cdecl; external SDLLibName;
+function SDL_CreateMutex: PSDL_mutex; cdecl; external SDLLibName;
+procedure SDL_DestroyMutex(mutex: PSDL_mutex); cdecl; external SDLLibName;
+function SDL_LockMutex(mutex: PSDL_mutex): integer; cdecl; external SDLLibName name 'SDL_mutexP';
+function SDL_UnlockMutex(mutex: PSDL_mutex): integer; cdecl; external SDLLibName name 'SDL_mutexV';
(* TTF *)