Skip to content

Commit

Permalink
it works. finally...
Browse files Browse the repository at this point in the history
  • Loading branch information
ev1313 committed Jul 29, 2013
1 parent 84d222e commit f32b7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdl.pas
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ TSDL_Thread = record
{**
* Create a thread.
*}
function SDL_CreateThread(fn: TSDL_ThreadFunction; name: PAnsiChar; data: Pointer; pfnBeginThread: TpfnSDL_CurrentBeginThread; pfnEndThread: TpfnSDL_CurrentEndThread): PSDL_Thread; overload; external {$IFDEF GPC} name 'SDL_CreateThread' {$ELSE} SDL_LibName {$ENDIF};
function SDL_CreateThread(fn: TSDL_ThreadFunction; name: PAnsiChar; data: Pointer; pfnBeginThread: TpfnSDL_CurrentBeginThread; pfnEndThread: TpfnSDL_CurrentEndThread): PSDL_Thread; cdecl; overload; external {$IFDEF GPC} name 'SDL_CreateThread' {$ELSE} SDL_LibName {$ENDIF};

{**
* Create a thread.
Expand Down Expand Up @@ -5926,7 +5926,7 @@ function SDL_VERSION_ATLEAST(X,Y,Z: Cardinal): Boolean;

function SDL_CreateThread(fn: TSDL_ThreadFunction; name: PAnsiChar; data: Pointer): PSDL_Thread;
begin
Result := SDL_CreateThread(fn,name,data,BeginThread,EndThread);
Result := SDL_CreateThread(fn,name,data,nil,nil);
end;

{$ENDIF}
Expand Down

0 comments on commit f32b7d5

Please sign in to comment.