windows/SDL_systhread.c: remove some dead code.

This commit is contained in:
Ozkan Sezer
2023-02-07 00:22:20 +03:00
parent 22bafe8729
commit b82a8b76b1

View File

@@ -28,30 +28,18 @@
#include "../SDL_systhread.h" #include "../SDL_systhread.h"
#include "SDL_systhread_c.h" #include "SDL_systhread_c.h"
#ifndef SDL_PASSED_BEGINTHREAD_ENDTHREAD
/* We'll use the C library from this DLL */
#include <process.h>
#ifndef STACK_SIZE_PARAM_IS_A_RESERVATION #ifndef STACK_SIZE_PARAM_IS_A_RESERVATION
#define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000 #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000
#endif #endif
/* Cygwin gcc-3 ... MingW64 (even with a i386 host) does this like MSVC. */ #ifndef SDL_PASSED_BEGINTHREAD_ENDTHREAD
#if (defined(__MINGW32__) && (__GNUC__ < 4)) /* We'll use the C library from this DLL */
typedef unsigned long(__cdecl *pfnSDL_CurrentBeginThread)(void *, unsigned, #include <process.h>
unsigned(__stdcall *func)(void *), void *arg,
unsigned, unsigned *threadID);
typedef void(__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
#else
typedef uintptr_t(__cdecl *pfnSDL_CurrentBeginThread)(void *, unsigned, typedef uintptr_t(__cdecl *pfnSDL_CurrentBeginThread)(void *, unsigned,
unsigned(__stdcall * unsigned(__stdcall *func)(void*),
func)(void
*),
void *arg, unsigned, void *arg, unsigned,
unsigned *threadID); unsigned *threadID);
typedef void(__cdecl *pfnSDL_CurrentEndThread)(unsigned code); typedef void(__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
#endif
#endif /* !SDL_PASSED_BEGINTHREAD_ENDTHREAD */ #endif /* !SDL_PASSED_BEGINTHREAD_ENDTHREAD */
static DWORD RunThread(void *data) static DWORD RunThread(void *data)