From ae404ad356aa6bd54cc5cc64591273d908429341 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 27 Dec 2022 06:51:28 +0300
Subject: [PATCH] remove duplicated SDL_CreateThread* defines from
sdl3_include_wrapper.h
---
src/sdl3_include_wrapper.h | 24 ++----------------------
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index fd09b68..23503c4 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -25,8 +25,8 @@
* the SDL2 signatures. Ugly business.
*/
-#ifndef _INCL_SDL3_INCLUDE_WRAPPER_H_
-#define _INCL_SDL3_INCLUDE_WRAPPER_H_
+#ifndef INCL_SDL3_INCLUDE_WRAPPER_H
+#define INCL_SDL3_INCLUDE_WRAPPER_H
#define SDL_GetVersion IGNORE_THIS_VERSION_OF_SDL_GetVersion
#define SDL_GetRevision IGNORE_THIS_VERSION_OF_SDL_GetRevision
@@ -477,10 +477,6 @@
#define SDL_Metal_GetDrawableSize IGNORE_THIS_VERSION_OF_SDL_Metal_GetDrawableSize
#define SDL_CreateThread IGNORE_THIS_VERSION_OF_SDL_CreateThread
#define SDL_CreateThreadWithStackSize IGNORE_THIS_VERSION_OF_SDL_CreateThreadWithStackSize
-#define SDL_CreateThread IGNORE_THIS_VERSION_OF_SDL_CreateThread
-#define SDL_CreateThreadWithStackSize IGNORE_THIS_VERSION_OF_SDL_CreateThreadWithStackSize
-#define SDL_CreateThread IGNORE_THIS_VERSION_OF_SDL_CreateThread
-#define SDL_CreateThreadWithStackSize IGNORE_THIS_VERSION_OF_SDL_CreateThreadWithStackSize
#define SDL_GetThreadName IGNORE_THIS_VERSION_OF_SDL_GetThreadName
#define SDL_ThreadID IGNORE_THIS_VERSION_OF_SDL_ThreadID
#define SDL_GetThreadID IGNORE_THIS_VERSION_OF_SDL_GetThreadID
@@ -2733,22 +2729,6 @@ typedef void (__cdecl *pfnSDL_CurrentEndThread) (unsigned);
#undef SDL_CreateThreadWithStackSize
#endif
-#ifdef SDL_CreateThread
-#undef SDL_CreateThread
-#endif
-
-#ifdef SDL_CreateThreadWithStackSize
-#undef SDL_CreateThreadWithStackSize
-#endif
-
-#ifdef SDL_CreateThread
-#undef SDL_CreateThread
-#endif
-
-#ifdef SDL_CreateThreadWithStackSize
-#undef SDL_CreateThreadWithStackSize
-#endif
-
#ifdef SDL_GetThreadName
#undef SDL_GetThreadName
#endif