Mercurial > sdl-ios-xcode
diff include/SDL_thread.h @ 1471:9fb0eee04dd9
Enabled libc support on Win32, so we don't break binary compatibility in 1.2
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Mar 2006 07:42:36 +0000 |
parents | d47d96962fcc |
children | 782fd950bd46 d5d3a6fe05a1 |
line wrap: on
line diff
--- a/include/SDL_thread.h Mon Mar 06 06:00:45 2006 +0000 +++ b/include/SDL_thread.h Mon Mar 06 07:42:36 2006 +0000 @@ -45,7 +45,7 @@ typedef struct SDL_Thread SDL_Thread; /* Create a thread */ -#if defined(__WIN32__) || defined(__OS2__) +#if (defined(__WIN32__) && !defined(HAVE_LIBC)) || defined(__OS2__) /* We compile SDL into a DLL on OS/2. This means, that it's the DLL which creates a new thread for the calling process with the SDL_CreateThread() @@ -59,11 +59,9 @@ So, in short: Always use the _beginthread() and _endthread() of the calling runtime library! */ +#define SDL_PASSED_BEGINTHREAD_ENDTHREAD #ifndef _WIN32_WCE -#include <process.h> // This has _beginthread() and _endthread() defined! -#endif -#ifdef __EMX__ -#include <stdlib.h> // This has _beginthread() and _endthread() defined, if -Zmt flag is used! +#include <process.h> /* This has _beginthread() and _endthread() defined! */ #endif #ifdef __OS2__