SDL: Also rename the internal function symbol when renaming API functions

From d31776b17aaea3a75565e85c9d19a15d4af979bd Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 24 Dec 2022 09:00:41 -0800
Subject: [PATCH] Also rename the internal function symbol when renaming API
 functions

---
 build-scripts/rename_api.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/build-scripts/rename_api.py b/build-scripts/rename_api.py
index d5098aad9d97..2b6fb895805c 100755
--- a/build-scripts/rename_api.py
+++ b/build-scripts/rename_api.py
@@ -37,7 +37,10 @@ def main():
         raise Exception("Couldn't find %s in %s" % (args.oldname, header))
 
     # Replace the symbol in source code and documentation
-    replacements = { args.oldname: args.newname }
+    replacements = {
+        args.oldname: args.newname,
+        args.oldname + "_REAL": args.newname + "_REAL"
+    }
     regex = create_regex_from_replacements(replacements)
     for dir in ["src", "test", "include", "docs", "Xcode-iOS/Demos"]:
         replace_symbols_in_path(SDL_ROOT / dir, regex, replacements)