SDL_rtf: Add RTF_Version to symbol version script

From 6df22b1c9f954c67f9b26ce73f5bc261b7edbc3a Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 15 May 2024 22:49:31 +0200
Subject: [PATCH] Add RTF_Version to symbol version script

---
 cmake/PrivateSdlFunctions.cmake | 1 +
 src/SDL_rtf.c                   | 2 +-
 src/SDL_rtf.sym                 | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/cmake/PrivateSdlFunctions.cmake b/cmake/PrivateSdlFunctions.cmake
index 47d820d..3af2b11 100644
--- a/cmake/PrivateSdlFunctions.cmake
+++ b/cmake/PrivateSdlFunctions.cmake
@@ -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.")
diff --git a/src/SDL_rtf.c b/src/SDL_rtf.c
index 0ed9fd4..5d1575d 100644
--- a/src/SDL_rtf.c
+++ b/src/SDL_rtf.c
@@ -28,7 +28,7 @@
 
 
 /* rcg06192001 get linked library's version. */
-int RTF_Linked_Version(void)
+int RTF_Version(void)
 {
     return SDL_RTF_VERSION;
 }
diff --git a/src/SDL_rtf.sym b/src/SDL_rtf.sym
index 58c47af..81d7bc9 100644
--- a/src/SDL_rtf.sym
+++ b/src/SDL_rtf.sym
@@ -6,9 +6,9 @@ SDL3_rtf_0.0.0 {
     RTF_GetHeight;
     RTF_GetSubject;
     RTF_GetTitle;
-    RTF_Linked_Version;
     RTF_Load;
     RTF_Load_IO;
     RTF_Render;
+    RTF_Version;
   local: *;
 };