SDL_thread.h: add missing os/2 defines.
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Aug 2017 13:01:22 -0700
changeset 1134097cd834a843e
parent 11339 a6da0a386f68
child 11341 8b3231952c22
SDL_thread.h: add missing os/2 defines.

(essentially replicates the windows case || SDL1.2 case.)
include/SDL_thread.h
     1.1 --- a/include/SDL_thread.h	Mon Aug 21 13:00:58 2017 -0700
     1.2 +++ b/include/SDL_thread.h	Mon Aug 21 13:01:22 2017 -0700
     1.3 @@ -118,6 +118,19 @@
     1.4  #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthreadex, (pfnSDL_CurrentEndThread)_endthreadex)
     1.5  #endif
     1.6  
     1.7 +#elif defined(__OS2__)
     1.8 +
     1.9 +/*
    1.10 + * just like the windows case above:  We compile SDL2
    1.11 + * into a dll with Watcom's runtime statically linked.
    1.12 + */
    1.13 +#define SDL_PASSED_BEGINTHREAD_ENDTHREAD
    1.14 +#include <process.h>
    1.15 +typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg);
    1.16 +typedef void (*pfnSDL_CurrentEndThread)(void);
    1.17 +#undef SDL_CreateThread
    1.18 +#define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
    1.19 +
    1.20  #else
    1.21  
    1.22  /**