From 9b3ec6a570d9858d2db2d33e04951a2d56c2639d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 21 Aug 2017 13:01:22 -0700 Subject: [PATCH] SDL_thread.h: add missing os/2 defines. (essentially replicates the windows case || SDL1.2 case.) --- include/SDL_thread.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/SDL_thread.h b/include/SDL_thread.h index 66a2d3e7e..87a44bf70 100644 --- a/include/SDL_thread.h +++ b/include/SDL_thread.h @@ -118,6 +118,19 @@ SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data, #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex) #endif +#elif defined(__OS2__) + +/* + * just like the windows case above: We compile SDL2 + * into a dll with Watcom's runtime statically linked. + */ +#define SDL_PASSED_BEGINTHREAD_ENDTHREAD +#include +typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); +typedef void (*pfnSDL_CurrentEndThread)(void); +#undef SDL_CreateThread +#define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread) + #else /**