sdl2-compat: sync with latest SDL2 and SDL3

From b50099f23776d7289a3984e02032d98b50b35695 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 29 Jul 2024 23:02:10 +0300
Subject: [PATCH] sync with latest SDL2 and SDL3

---
 include/SDL2/SDL_hints.h   |  8 ++++----
 src/sdl3_include_wrapper.h | 20 ++++++++++++++++++++
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/include/SDL2/SDL_hints.h b/include/SDL2/SDL_hints.h
index 24b73b6..aa015e6 100644
--- a/include/SDL2/SDL_hints.h
+++ b/include/SDL2/SDL_hints.h
@@ -3100,10 +3100,10 @@ extern "C" {
  * try opening a path to discover that SDL adjusts the path to elsewhere, so
  * this hint allows that behavior to be disabled.
  *
- * If running from a App Bundle, this will be MyApp.app/Contents/Resources.
- * If running as a normal Unix-like process, this will be the directory where
- * the running binary lives. Setting this hint to 0 avoids this and just
- * uses the requested path as-is.
+ * If running from a App Bundle, this will be MyApp.app/Contents/Resources. If
+ * running as a normal Unix-like process, this will be the directory where the
+ * running binary lives. Setting this hint to 0 avoids this and just uses the
+ * requested path as-is.
  *
  * This variable can be set to the following values:
  *
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index 306ea19..56e335f 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -190,6 +190,7 @@
 #define SDL_GetAndroidInternalStoragePath IGNORE_THIS_VERSION_OF_SDL_GetAndroidInternalStoragePath
 #define SDL_GetAndroidJNIEnv IGNORE_THIS_VERSION_OF_SDL_GetAndroidJNIEnv
 #define SDL_GetAndroidSDKVersion IGNORE_THIS_VERSION_OF_SDL_GetAndroidSDKVersion
+#define SDL_GetAppMetadataProperty IGNORE_THIS_VERSION_OF_SDL_GetAppMetadataProperty
 #define SDL_GetAssertionHandler IGNORE_THIS_VERSION_OF_SDL_GetAssertionHandler
 #define SDL_GetAssertionReport IGNORE_THIS_VERSION_OF_SDL_GetAssertionReport
 #define SDL_GetAudioDeviceChannelMap IGNORE_THIS_VERSION_OF_SDL_GetAudioDeviceChannelMap
@@ -726,6 +727,8 @@
 #define SDL_SendGamepadEffect IGNORE_THIS_VERSION_OF_SDL_SendGamepadEffect
 #define SDL_SendJoystickEffect IGNORE_THIS_VERSION_OF_SDL_SendJoystickEffect
 #define SDL_SendJoystickVirtualSensorData IGNORE_THIS_VERSION_OF_SDL_SendJoystickVirtualSensorData
+#define SDL_SetAppMetadata IGNORE_THIS_VERSION_OF_SDL_SetAppMetadata
+#define SDL_SetAppMetadataProperty IGNORE_THIS_VERSION_OF_SDL_SetAppMetadataProperty
 #define SDL_SetAssertionHandler IGNORE_THIS_VERSION_OF_SDL_SetAssertionHandler
 #define SDL_SetAudioDeviceGain IGNORE_THIS_VERSION_OF_SDL_SetAudioDeviceGain
 #define SDL_SetAudioPostmixCallback IGNORE_THIS_VERSION_OF_SDL_SetAudioPostmixCallback
@@ -1070,6 +1073,7 @@
 #define SDL_uitoa IGNORE_THIS_VERSION_OF_SDL_uitoa
 #define SDL_ulltoa IGNORE_THIS_VERSION_OF_SDL_ulltoa
 #define SDL_ultoa IGNORE_THIS_VERSION_OF_SDL_ultoa
+#define SDL_unsetenv IGNORE_THIS_VERSION_OF_SDL_unsetenv
 #define SDL_utf8strlcpy IGNORE_THIS_VERSION_OF_SDL_utf8strlcpy
 #define SDL_utf8strlen IGNORE_THIS_VERSION_OF_SDL_utf8strlen
 #define SDL_utf8strnlen IGNORE_THIS_VERSION_OF_SDL_utf8strnlen
@@ -1741,6 +1745,10 @@
 #undef SDL_GetAndroidSDKVersion
 #endif
 
+#ifdef SDL_GetAppMetadataProperty
+#undef SDL_GetAppMetadataProperty
+#endif
+
 #ifdef SDL_GetAssertionHandler
 #undef SDL_GetAssertionHandler
 #endif
@@ -3885,6 +3893,14 @@
 #undef SDL_SendJoystickVirtualSensorData
 #endif
 
+#ifdef SDL_SetAppMetadata
+#undef SDL_SetAppMetadata
+#endif
+
+#ifdef SDL_SetAppMetadataProperty
+#undef SDL_SetAppMetadataProperty
+#endif
+
 #ifdef SDL_SetAssertionHandler
 #undef SDL_SetAssertionHandler
 #endif
@@ -5261,6 +5277,10 @@
 #undef SDL_ultoa
 #endif
 
+#ifdef SDL_unsetenv
+#undef SDL_unsetenv
+#endif
+
 #ifdef SDL_utf8strlcpy
 #undef SDL_utf8strlcpy
 #endif