sdl2-compat: update after SDL_HasWindowSurface and SDL_DestroyWindowSurface additions

From d264c3e6239d903257a9af475426855f86d7e410 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 10 Jun 2023 20:20:00 +0300
Subject: [PATCH] update after SDL_HasWindowSurface and
 SDL_DestroyWindowSurface additions

---
 src/SDL2.exports           |  2 ++
 src/sdl2_protos.h          |  2 ++
 src/sdl3_include_wrapper.h | 10 ++++++++++
 src/sdl3_syms.h            |  2 ++
 4 files changed, 16 insertions(+)

diff --git a/src/SDL2.exports b/src/SDL2.exports
index a45ec2d..300dbc6 100644
--- a/src/SDL2.exports
+++ b/src/SDL2.exports
@@ -841,3 +841,5 @@
 ++'_SDL_SensorGetDataWithTimestamp'.'SDL2.dll'.'SDL_SensorGetDataWithTimestamp'.'SDL_SensorGetDataWithTimestamp'
 ++'_SDL_ResetHints'.'SDL2.dll'.'SDL_ResetHints'.'SDL_ResetHints'
 ++'_SDL_strcasestr'.'SDL2.dll'.'SDL_strcasestr'.'SDL_strcasestr'
+++'_SDL_HasWindowSurface'.'SDL2.dll'.'SDL_HasWindowSurface'.'SDL_HasWindowSurface'
+++'_SDL_DestroyWindowSurface'.'SDL2.dll'.'SDL_DestroyWindowSurface'.'SDL_DestroyWindowSurface'
diff --git a/src/sdl2_protos.h b/src/sdl2_protos.h
index 0c49047..ae437ac 100644
--- a/src/sdl2_protos.h
+++ b/src/sdl2_protos.h
@@ -964,6 +964,8 @@ SDL2_PROTO(char*,strcasestr,(const char *a, const char *b))
 #if defined(__GDK__)
 SDL2_PROTO(void,GDKSuspendComplete,(void))
 #endif
+SDL2_PROTO(SDL_bool,HasWindowSurface,(SDL_Window *a))
+SDL2_PROTO(int,DestroyWindowSurface,(SDL_Window *a))
 
 #undef SDL2_PROTO
 
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index 6aa3ad2..056fff5 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -890,6 +890,8 @@
 #define SDL_hid_get_input_report IGNORE_THIS_VERSION_OF_SDL_hid_get_input_report
 #define SDL_hid_get_device_info IGNORE_THIS_VERSION_OF_SDL_hid_get_device_info
 #define SDL_hid_get_report_descriptor IGNORE_THIS_VERSION_OF_SDL_hid_get_report_descriptor
+#define SDL_HasWindowSurface IGNORE_THIS_VERSION_OF_SDL_HasWindowSurface
+#define SDL_DestroyWindowSurface IGNORE_THIS_VERSION_OF_SDL_DestroyWindowSurface
 
 /* *** HACK HACK HACK:
  * *** Avoid including SDL_thread.h: it defines SDL_CreateThread() as a macro
@@ -4396,6 +4398,14 @@ typedef void (__cdecl *pfnSDL_CurrentEndThread) (unsigned);
 #undef SDL_hid_get_report_descriptor
 #endif
 
+#ifdef SDL_HasWindowSurface
+#undef SDL_HasWindowSurface
+#endif
+
+#ifdef SDL_DestroyWindowSurface
+#undef SDL_DestroyWindowSurface
+#endif
+
 /* undefine these macros too: */
 /* redefine using SDL3_xxx, if needed. */
 
diff --git a/src/sdl3_syms.h b/src/sdl3_syms.h
index 4a70ab9..c332bb7 100644
--- a/src/sdl3_syms.h
+++ b/src/sdl3_syms.h
@@ -912,6 +912,8 @@ SDL3_SYM(const SDL_DisplayMode *,GetWindowFullscreenMode,(SDL_Window *a),(a),ret
 SDL3_SYM(const SDL_DisplayMode **,GetFullscreenDisplayModes,(SDL_DisplayID a, int *b),(a,b),return)
 SDL3_SYM(int,GetRenderLogicalPresentation,(SDL_Renderer *a, int *b, int *c, SDL_RendererLogicalPresentation *d, SDL_ScaleMode *e),(a,b,c,d,e),return)
 SDL3_SYM(int,SetRenderLogicalPresentation,(SDL_Renderer *a, int b, int c, SDL_RendererLogicalPresentation d, SDL_ScaleMode e),(a,b,c,d,e),return)
+SDL3_SYM_PASSTHROUGH(SDL_bool,HasWindowSurface,(SDL_Window *a),(a),return)
+SDL3_SYM_PASSTHROUGH(int,DestroyWindowSurface,(SDL_Window *a),(a),return)
 #undef SDL3_SYM
 #undef SDL3_SYM_PASSTHROUGH
 #undef SDL3_SYM_RENAMED