include/SDL_thread.h
branchSDL-1.2
changeset 5892 eca95aaa02a2
parent 4217 4c4113c2162c
child 5897 90faab009401
equal deleted inserted replaced
5891:9086ec040519 5892:eca95aaa02a2
    66 #endif
    66 #endif
    67 
    67 
    68 #ifdef __OS2__
    68 #ifdef __OS2__
    69 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); 
    69 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); 
    70 typedef void (*pfnSDL_CurrentEndThread)(void);
    70 typedef void (*pfnSDL_CurrentEndThread)(void);
    71 #elif __GNUC__
       
    72 typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
       
    73         unsigned (__stdcall *func)(void *), void *arg, 
       
    74         unsigned, unsigned *threadID);
       
    75 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
       
    76 #else
    71 #else
    77 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
    72 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
    78         unsigned (__stdcall *func)(void *), void *arg, 
    73         unsigned (__stdcall *func)(void *), void *arg, 
    79         unsigned, unsigned *threadID);
    74         unsigned, unsigned *threadID);
    80 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
    75 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);