comparison src/thread/os2/SDL_systhread.c @ 1330:450721ad5436

It's now possible to build SDL without any C runtime at all on Windows, using Visual C++ 2005
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Feb 2006 08:28:51 +0000
parents c9b51268668f
children 3692456e7b0f
comparison
equal deleted inserted replaced
1329:bc67bbf87818 1330:450721ad5436
70 // Save the function which we will have to call to clear the RTL of calling app! 70 // Save the function which we will have to call to clear the RTL of calling app!
71 pThreadParms->pfnCurrentEndThread = pfnEndThread; 71 pThreadParms->pfnCurrentEndThread = pfnEndThread;
72 // Also save the real parameters we have to pass to thread function 72 // Also save the real parameters we have to pass to thread function
73 pThreadParms->args = args; 73 pThreadParms->args = args;
74 // Start the thread using the runtime library of calling app! 74 // Start the thread using the runtime library of calling app!
75 thread->threadid = thread->handle = (*pfnBeginThread)(threadfunc, 512*1024, pThreadParms); 75 thread->threadid = thread->handle = (*pfnBeginThread)(threadfunc, NULL, 512*1024, pThreadParms);
76 if (thread->threadid<=0) 76 if (thread->threadid<=0)
77 { 77 {
78 SDL_SetError("Not enough resources to create thread"); 78 SDL_SetError("Not enough resources to create thread");
79 return(-1); 79 return(-1);
80 } 80 }