misc/winutils/include/SDL_thread.h
changeset 7809 7d4fb2f35f4f
parent 6560 ca07e6be08d0
child 10017 de822cd3df3a
equal deleted inserted replaced
7808:cc1805cd9138 7809:7d4fb2f35f4f
     1 /*
     1 /*
     2     SDL - Simple DirectMedia Layer
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2009 Sam Lantinga
     3     Copyright (C) 1997-2012 Sam Lantinga
     4 
     4 
     5     This library is free software; you can redistribute it and/or
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     8     version 2.1 of the License, or (at your option) any later version.
    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);