include/SDL_thread.h
changeset 1850 d5d3a6fe05a1
parent 1471 9fb0eee04dd9
child 1895 c121d94672cb
child 3975 e85e65aec22f
equal deleted inserted replaced
1849:b5a4ac87b98c 1850:d5d3a6fe05a1
    77         unsigned (__stdcall *func)(void *), void *arg, 
    77         unsigned (__stdcall *func)(void *), void *arg, 
    78         unsigned, unsigned *threadID);
    78         unsigned, unsigned *threadID);
    79 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
    79 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
    80 #endif
    80 #endif
    81 
    81 
    82 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread);
    82 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread);
    83 
    83 
    84 #ifdef __OS2__
    84 #ifdef __OS2__
    85 #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthread, _endthread)
    85 #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthread, _endthread)
    86 #elif defined(_WIN32_WCE)
    86 #elif defined(_WIN32_WCE)
    87 #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, NULL, NULL)
    87 #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, NULL, NULL)