sdl12-compat: windows: Make SDL_RegisterApp and SDL_UnregisterApp passthrough functions.

From 9a6b2da17e5374865875e231613fffac0d3800b3 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 7 Dec 2021 10:44:32 -0500
Subject: [PATCH] windows: Make SDL_RegisterApp and SDL_UnregisterApp
 passthrough functions.

Reference issue #8.
---
 src/SDL12_compat.c | 13 -------------
 src/SDL20_syms.h   |  5 +++++
 2 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index a1f8776..a7b9e29 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -1259,19 +1259,6 @@ SDL_SetModuleHandle(void *handle)
 {
     (void) handle;/* handled internally by SDL2 - nothing to do.. */
 }
-
-/* FIXME: forward these two to the SDL2 versions ? */
-DECLSPEC int SDLCALL
-SDL_RegisterApp(char *name, Uint32 style, void *hInst)
-{
-    (void) name; (void) style; (void) hInst;
-    return 0;
-}
-
-DECLSPEC void SDLCALL
-SDL_UnregisterApp(void)
-{
-}
 #endif
 
 
diff --git a/src/SDL20_syms.h b/src/SDL20_syms.h
index 77cc48e..1393217 100644
--- a/src/SDL20_syms.h
+++ b/src/SDL20_syms.h
@@ -328,6 +328,11 @@ SDL20_SYM(void,DestroyTexture,(SDL_Texture *a),(a),)
 SDL20_SYM(void,DestroyRenderer,(SDL_Renderer *a),(a),)
 SDL20_SYM(void,RenderPresent,(SDL_Renderer *a),(a),)
 
+#ifdef _WIN32
+SDL20_SYM_PASSTHROUGH(int,RegisterApp,(const char *a, Uint32 b, void *c),(a,b,c),return)
+SDL20_SYM_PASSTHROUGH(void,UnregisterApp,(void),(),)
+#endif
+
 /* These are optional OpenGL entry points for sdl12-compat's internal use. */
 OPENGL_SYM(Core,const GLubyte *,glGetString,(GLenum a),(a),return)
 OPENGL_SYM(Core,GLenum,glGetError,(),(),return)