SDL_thread.h: fix os/2 defines (rev 11340:97cd834a843e was a missing patch)
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Aug 2017 18:48:51 -0700
changeset 113560347c3e08f85
parent 11355 6185fb86f046
child 11357 ee67705542b7
SDL_thread.h: fix os/2 defines (rev 11340:97cd834a843e was a missing patch)
include/SDL_thread.h
     1.1 --- a/include/SDL_thread.h	Sun Aug 27 18:43:52 2017 -0700
     1.2 +++ b/include/SDL_thread.h	Sun Aug 27 18:48:51 2017 -0700
     1.3 @@ -119,17 +119,24 @@
     1.4  #endif
     1.5  
     1.6  #elif defined(__OS2__)
     1.7 -
     1.8  /*
     1.9   * just like the windows case above:  We compile SDL2
    1.10   * into a dll with Watcom's runtime statically linked.
    1.11   */
    1.12  #define SDL_PASSED_BEGINTHREAD_ENDTHREAD
    1.13  #include <process.h>
    1.14 -typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg);
    1.15 +typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void * /*arg*/);
    1.16  typedef void (*pfnSDL_CurrentEndThread)(void);
    1.17 +extern DECLSPEC SDL_Thread *SDLCALL
    1.18 +SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data,
    1.19 +                 pfnSDL_CurrentBeginThread pfnBeginThread,
    1.20 +                 pfnSDL_CurrentEndThread pfnEndThread);
    1.21 +#if defined(SDL_CreateThread) && SDL_DYNAMIC_API
    1.22  #undef SDL_CreateThread
    1.23 +#define SDL_CreateThread(fn, name, data) SDL_CreateThread_REAL(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
    1.24 +#else
    1.25  #define SDL_CreateThread(fn, name, data) SDL_CreateThread(fn, name, data, (pfnSDL_CurrentBeginThread)_beginthread, (pfnSDL_CurrentEndThread)_endthread)
    1.26 +#endif
    1.27  
    1.28  #else
    1.29