From b82a8b76b1fff19a45b61c9e5c6e4347ad2f9e64 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 7 Feb 2023 00:22:20 +0300 Subject: [PATCH] windows/SDL_systhread.c: remove some dead code. --- src/thread/windows/SDL_systhread.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/thread/windows/SDL_systhread.c b/src/thread/windows/SDL_systhread.c index 5ce3bfc622..fa8e9d1215 100644 --- a/src/thread/windows/SDL_systhread.c +++ b/src/thread/windows/SDL_systhread.c @@ -28,30 +28,18 @@ #include "../SDL_systhread.h" #include "SDL_systhread_c.h" -#ifndef SDL_PASSED_BEGINTHREAD_ENDTHREAD -/* We'll use the C library from this DLL */ -#include - #ifndef STACK_SIZE_PARAM_IS_A_RESERVATION #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000 #endif -/* Cygwin gcc-3 ... MingW64 (even with a i386 host) does this like MSVC. */ -#if (defined(__MINGW32__) && (__GNUC__ < 4)) -typedef unsigned long(__cdecl *pfnSDL_CurrentBeginThread)(void *, unsigned, - unsigned(__stdcall *func)(void *), void *arg, - unsigned, unsigned *threadID); -typedef void(__cdecl *pfnSDL_CurrentEndThread)(unsigned code); - -#else +#ifndef SDL_PASSED_BEGINTHREAD_ENDTHREAD +/* We'll use the C library from this DLL */ +#include typedef uintptr_t(__cdecl *pfnSDL_CurrentBeginThread)(void *, unsigned, - unsigned(__stdcall * - func)(void - *), + unsigned(__stdcall *func)(void*), void *arg, unsigned, unsigned *threadID); typedef void(__cdecl *pfnSDL_CurrentEndThread)(unsigned code); -#endif #endif /* !SDL_PASSED_BEGINTHREAD_ENDTHREAD */ static DWORD RunThread(void *data)