Skip to content

Commit 85c2771

Browse files
Merge pull request #5 from konovod/master
Fix TTF_Linked_Version and SDLNet_Linked_Version
2 parents 2fe252f + 0d2453a commit 85c2771

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdl2_net.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ procedure SDL_NET_VERSION(Out X: TSDL_Version);
7070
it should NOT be used to fill a version structure, instead you should
7171
use the SDL_NET_VERSION() macro.
7272
*}
73-
procedure SDLNet_Linked_Version() cdecl; external SDLNet_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDLNet_Linked_Version' {$ENDIF} {$ENDIF};
73+
function SDLNet_Linked_Version: PSDL_Version cdecl; external SDLNet_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDLNet_Linked_Version' {$ENDIF} {$ENDIF};
7474

7575
{* Initialize/Cleanup the network API
7676
SDL must be initialized before calls to functions in this library,

sdl2_ttf.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ interface
8787
it should NOT be used to fill a version structure, instead you should
8888
use the SDL_TTF_VERSION() macro.
8989
*}
90-
function TTF_Linked_Version: TSDL_Version cdecl; external TTF_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_TTF_Linked_Version' {$ENDIF} {$ENDIF};
90+
function TTF_Linked_Version: PSDL_Version cdecl; external TTF_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_TTF_Linked_Version' {$ENDIF} {$ENDIF};
9191

9292
{* ZERO WIDTH NO-BREAKSPACE (Unicode byte order mark) *}
9393
const

0 commit comments

Comments
 (0)