From c28e1b59f5ce535e3b7fd0f71b7e8e7eea4cecdc Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 18 Jul 2023 22:55:32 +0300
Subject: [PATCH] updated sdl3_include_wrapper.h from latest SDL3
---
src/sdl3_include_wrapper.h | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index e18f84d..b6e3e71 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -901,6 +901,9 @@
#define SDL_GetGamepadStringForType IGNORE_THIS_VERSION_OF_SDL_GetGamepadStringForType
#define SDL_GetRealGamepadInstanceType IGNORE_THIS_VERSION_OF_SDL_GetRealGamepadInstanceType
#define SDL_GetRealGamepadType IGNORE_THIS_VERSION_OF_SDL_GetRealGamepadType
+#define SDL_wcsnlen IGNORE_THIS_VERSION_OF_SDL_wcsnlen
+#define SDL_strnlen IGNORE_THIS_VERSION_OF_SDL_strnlen
+#define SDL_AddGamepadMappingsFromFile IGNORE_THIS_VERSION_OF_SDL_AddGamepadMappingsFromFile
/* *** HACK HACK HACK:
* *** Avoid including SDL_thread.h: it defines SDL_CreateThread() as a macro
@@ -4451,6 +4454,18 @@ typedef void (__cdecl *pfnSDL_CurrentEndThread) (unsigned);
#undef SDL_GetRealGamepadType
#endif
+#ifdef SDL_wcsnlen
+#undef SDL_wcsnlen
+#endif
+
+#ifdef SDL_strnlen
+#undef SDL_strnlen
+#endif
+
+#ifdef SDL_AddGamepadMappingsFromFile
+#undef SDL_AddGamepadMappingsFromFile
+#endif
+
/* undefine these macros too: */
/* redefine as SDL3_xxx, if needed. */
@@ -4522,10 +4537,6 @@ typedef void (__cdecl *pfnSDL_CurrentEndThread) (unsigned);
#undef SDL_LoadWAV
#endif
-#ifdef SDL_AddGamepadMappingsFromFile
-#undef SDL_AddGamepadMappingsFromFile
-#endif
-
#ifdef SDL_GDKRunApp
#undef SDL_GDKRunApp
#endif