diff include/SDL_thread.h @ 1470:d47d96962fcc

Fixed declarations to match mingw includes
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Mar 2006 06:00:45 +0000
parents 8dfa9a6d69a5
children 9fb0eee04dd9
line wrap: on
line diff
--- a/include/SDL_thread.h	Mon Mar 06 01:34:36 2006 +0000
+++ b/include/SDL_thread.h	Mon Mar 06 06:00:45 2006 +0000
@@ -69,6 +69,11 @@
 #ifdef __OS2__
 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); 
 typedef void (*pfnSDL_CurrentEndThread)(void);
+#elif __GNUC__
+typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
+        unsigned (__stdcall *func)(void *), void *arg, 
+        unsigned, unsigned *threadID);
+typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code);
 #else
 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned,
         unsigned (__stdcall *func)(void *), void *arg,