Skip to content

Commit

Permalink
Add SDLNet_Version to symbol version script
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed May 15, 2024
1 parent e4559c9 commit 0f95bd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmake/PrivateSdlFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ function(sdl_target_link_option_version_file TARGET VERSION_SCRIPT)
check_linker_support_version_script(HAVE_WL_VERSION_SCRIPT)
if(HAVE_WL_VERSION_SCRIPT)
target_link_options(${TARGET} PRIVATE "-Wl,--version-script=${VERSION_SCRIPT}")
set_property(TARGET ${TARGET} APPEND PROPERTY LINK_DEPENDS "${VERSION_SCRIPT}")
else()
if(LINUX OR ANDROID)
message(FATAL_ERROR "Linker does not support '-Wl,--version-script=xxx.sym'. This is required on the current host platform.")
Expand Down
2 changes: 1 addition & 1 deletion src/SDL_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ typedef enum SDLNet_SocketType
} SDLNet_SocketType;


int SDLNet_LinkedVersion(void)
int SDLNet_Version(void)
{
return SDL_NET_VERSION;
}
Expand Down
2 changes: 1 addition & 1 deletion src/SDL_net.sym
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ SDL3_net_0.0.0 {
SDLNet_GetStreamSocketAddress;
SDLNet_GetStreamSocketPendingWrites;
SDLNet_Init;
SDLNet_LinkedVersion;
SDLNet_Quit;
SDLNet_ReadFromStreamSocket;
SDLNet_ReceiveDatagram;
Expand All @@ -28,6 +27,7 @@ SDL3_net_0.0.0 {
SDLNet_SimulateDatagramPacketLoss;
SDLNet_SimulateStreamPacketLoss;
SDLNet_UnrefAddress;
SDLNet_Version;
SDLNet_WaitUntilConnected;
SDLNet_WaitUntilInputAvailable;
SDLNet_WaitUntilResolved;
Expand Down

0 comments on commit 0f95bd8

Please sign in to comment.