include/SDL_thread.h
changeset 11340 97cd834a843e
parent 11284 3db78361e751
child 11356 0347c3e08f85
     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  /**