Mercurial > sdl-ios-xcode
diff src/thread/win32/SDL_systhread.c @ 1251:86d0d01290ea
Updated Windows CE/PocketPC support...adds GAPI driver, landscape mode,
updated project files, VS2005 support, VGA mode, more device support, etc,
etc, etc.
Fixes Bugzilla #47 and #28.
--ryan.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 19 Jan 2006 08:43:00 +0000 |
parents | 09bc22169702 |
children | c9b51268668f |
line wrap: on
line diff
--- a/src/thread/win32/SDL_systhread.c Thu Jan 19 08:36:41 2006 +0000 +++ b/src/thread/win32/SDL_systhread.c Thu Jan 19 08:43:00 2006 +0000 @@ -30,7 +30,10 @@ #include <stdio.h> #include <stdlib.h> #include <windows.h> + +#ifndef _WIN32_WCE #include <process.h> +#endif #include "SDL_error.h" #include "SDL_thread.h" @@ -53,9 +56,14 @@ * have to use _beginthreadex if we want the returned handle * to be accessible after the thread exits * threads created with _beginthread auto-close the handle + * Windows CE still use CreateThread. */ +#ifdef _WIN32_WCE + thread->handle = CreateThread(NULL, 0, RunThread, args, 0, &threadid); +#else thread->handle = (SYS_ThreadHandle) _beginthreadex(NULL, 0, RunThread, args, 0, &threadid); +#endif if (thread->handle == NULL) { SDL_SetError("Not enough resources to create thread"); return(-1);