64 #ifndef _WIN32_WCE |
64 #ifndef _WIN32_WCE |
65 #include <process.h> /* This has _beginthread() and _endthread() defined! */ |
65 #include <process.h> /* This has _beginthread() and _endthread() defined! */ |
66 #endif |
66 #endif |
67 |
67 |
68 #ifdef __OS2__ |
68 #ifdef __OS2__ |
69 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); |
69 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); |
70 typedef void (*pfnSDL_CurrentEndThread)(void); |
70 typedef void (*pfnSDL_CurrentEndThread)(void); |
71 #else |
71 #else |
72 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, |
72 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, |
73 unsigned (__stdcall *func)(void *), void *arg, |
73 unsigned (__stdcall *func)(void *), void *arg, |
74 unsigned, unsigned *threadID); |
74 unsigned, unsigned *threadID); |
75 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); |
75 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); |
76 #endif |
76 #endif |
77 |
77 |
78 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); |
78 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); |