sdl2-compat: update after SDL_SizeIO to SDL_GetIOSize rename in SDL3.

From 2d008b2e20cdffb76a3d66a774a9bbd5265c508c Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 18 Mar 2024 11:34:24 +0300
Subject: [PATCH] update after SDL_SizeIO to SDL_GetIOSize rename in SDL3.

---
 src/sdl2_compat.c          |  2 +-
 src/sdl3_include_wrapper.h | 11 ++++++++---
 src/sdl3_syms.h            |  2 +-
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index fed2ef8..01843e5 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -2091,7 +2091,7 @@ SDL_FreeRW(SDL2_RWops *rwops2)
 static Sint64 SDLCALL
 RWops3to2_size(SDL2_RWops *rwops2)
 {
-    return SDL3_SizeIO(rwops2->hidden.sdl3.iostrm);
+    return SDL3_GetIOSize(rwops2->hidden.sdl3.iostrm);
 }
 
 static Sint64 SDLCALL
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index a7e206f..2eb3dd6 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -501,7 +501,7 @@
 #define SDL_IOFromMem IGNORE_THIS_VERSION_OF_SDL_IOFromMem
 #define SDL_ReadIO IGNORE_THIS_VERSION_OF_SDL_ReadIO
 #define SDL_SeekIO IGNORE_THIS_VERSION_OF_SDL_SeekIO
-#define SDL_SizeIO IGNORE_THIS_VERSION_OF_SDL_SizeIO
+#define SDL_GetIOSize IGNORE_THIS_VERSION_OF_SDL_GetIOSize
 #define SDL_TellIO IGNORE_THIS_VERSION_OF_SDL_TellIO
 #define SDL_WriteIO IGNORE_THIS_VERSION_OF_SDL_WriteIO
 #define SDL_RaiseWindow IGNORE_THIS_VERSION_OF_SDL_RaiseWindow
@@ -1031,6 +1031,7 @@
 #define SDL_RenameStoragePath IGNORE_THIS_VERSION_OF_SDL_RenameStoragePath
 #define SDL_GetStoragePathInfo IGNORE_THIS_VERSION_OF_SDL_GetStoragePathInfo
 #define SDL_FileTimeFromWindows IGNORE_THIS_VERSION_OF_SDL_FileTimeFromWindows
+#define SDL_IOFromDynamicMem IGNORE_THIS_VERSION_OF_SDL_IOFromDynamicMem
 
 
 #define SDL_FUNCTION_POINTER_IS_VOID_POINTER 1
@@ -2927,8 +2928,8 @@
 #undef SDL_SeekIO
 #endif
 
-#ifdef SDL_SizeIO
-#undef SDL_SizeIO
+#ifdef SDL_GetIOSize
+#undef SDL_GetIOSize
 #endif
 
 #ifdef SDL_TellIO
@@ -5047,6 +5048,10 @@
 #undef SDL_FileTimeFromWindows
 #endif
 
+#ifdef SDL_IOFromDynamicMem
+#undef SDL_IOFromDynamicMem
+#endif
+
 #undef SDL_ThreadID /* see at top. */
 
 /* undefine these macros, too: redefine as SDL3_xxx, if needed. */
diff --git a/src/sdl3_syms.h b/src/sdl3_syms.h
index 84da403..1ef06b3 100644
--- a/src/sdl3_syms.h
+++ b/src/sdl3_syms.h
@@ -615,7 +615,7 @@ SDL3_SYM_PASSTHROUGH(SDL_TouchDeviceType,GetTouchDeviceType,(SDL_TouchID a),(a),
 SDL3_SYM_PASSTHROUGH(size_t,SIMDGetAlignment,(void),(),return)
 SDL3_SYM(void*,aligned_alloc,(size_t a, size_t b),(a,b),return)
 SDL3_SYM(void,aligned_free,(void *a),(a),)
-SDL3_SYM(Sint64,SizeIO,(SDL_IOStream *a),(a),return)
+SDL3_SYM(Sint64,GetIOSize,(SDL_IOStream *a),(a),return)
 SDL3_SYM(Sint64,SeekIO,(SDL_IOStream *a, Sint64 b, int c),(a,b,c),return)
 SDL3_SYM(Sint64,TellIO,(SDL_IOStream *a),(a),return)
 SDL3_SYM(size_t,ReadIO,(SDL_IOStream *a, void *b, size_t c),(a,b,c),return)