From 8a90fd7950b379d075130cee7542a9c5a006ab3a Mon Sep 17 00:00:00 2001 From: kipar Date: Mon, 1 Feb 2021 19:21:50 +0300 Subject: [PATCH 1/2] Fix TTF_Linked_Version --- sdl2_ttf.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl2_ttf.pas b/sdl2_ttf.pas index 9b60e29b..1f9f129a 100644 --- a/sdl2_ttf.pas +++ b/sdl2_ttf.pas @@ -87,7 +87,7 @@ interface it should NOT be used to fill a version structure, instead you should use the SDL_TTF_VERSION() macro. *} -function TTF_Linked_Version: TSDL_Version cdecl; external TTF_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_TTF_Linked_Version' {$ENDIF} {$ENDIF}; +function TTF_Linked_Version: PSDL_Version cdecl; external TTF_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_TTF_Linked_Version' {$ENDIF} {$ENDIF}; {* ZERO WIDTH NO-BREAKSPACE (Unicode byte order mark) *} const From 0d2453ac1c7965a02b44466d1742f41821667e17 Mon Sep 17 00:00:00 2001 From: kipar Date: Mon, 1 Feb 2021 19:23:21 +0300 Subject: [PATCH 2/2] fix SDLNet_Linked_Version --- sdl2_net.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl2_net.pas b/sdl2_net.pas index 827b89c6..5a88bfcc 100644 --- a/sdl2_net.pas +++ b/sdl2_net.pas @@ -70,7 +70,7 @@ procedure SDL_NET_VERSION(Out X: TSDL_Version); it should NOT be used to fill a version structure, instead you should use the SDL_NET_VERSION() macro. *} - procedure SDLNet_Linked_Version() cdecl; external SDLNet_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDLNet_Linked_Version' {$ENDIF} {$ENDIF}; + function SDLNet_Linked_Version: PSDL_Version cdecl; external SDLNet_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDLNet_Linked_Version' {$ENDIF} {$ENDIF}; {* Initialize/Cleanup the network API SDL must be initialized before calls to functions in this library,