sdl12-compat: added stubs for SDL_SetModuleHandle, SDL_RegisterApp, SDL_UnregisterApp

From 429cd1f68550ac259d6232adf4cdc69aed983346 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 1 Mar 2021 17:55:00 +0300
Subject: [PATCH] added stubs for SDL_SetModuleHandle, SDL_RegisterApp,
 SDL_UnregisterApp

they are handled internally by SDL2..
---
 src/SDL12_compat.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index e45032d..114aa5a 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -962,6 +962,25 @@ unsigned _System LibMain(unsigned hmod, unsigned termination)
     #error Please define your platform
 #endif
 
+#ifdef _WIN32
+DECLSPEC void SDLCALL
+SDL_SetModuleHandle(void *handle)
+{
+    /* handled internally by SDL2 - nothing to do.. */
+}
+
+DECLSPEC int SDLCALL
+SDL_RegisterApp(char *name, Uint32 style, void *hInst)
+{
+    return 0;
+}
+
+DECLSPEC void SDLCALL
+SDL_UnregisterApp(void)
+{
+}
+#endif
+
 DECLSPEC const SDL_version * SDLCALL
 SDL_Linked_Version(void)
 {