include/SDL_thread.h
changeset 1471 9fb0eee04dd9
parent 1470 d47d96962fcc
child 1662 782fd950bd46
child 1850 d5d3a6fe05a1
     1.1 --- a/include/SDL_thread.h	Mon Mar 06 06:00:45 2006 +0000
     1.2 +++ b/include/SDL_thread.h	Mon Mar 06 07:42:36 2006 +0000
     1.3 @@ -45,7 +45,7 @@
     1.4  typedef struct SDL_Thread SDL_Thread;
     1.5  
     1.6  /* Create a thread */
     1.7 -#if defined(__WIN32__) || defined(__OS2__)
     1.8 +#if (defined(__WIN32__) && !defined(HAVE_LIBC)) || defined(__OS2__)
     1.9  /*
    1.10     We compile SDL into a DLL on OS/2. This means, that it's the DLL which
    1.11     creates a new thread for the calling process with the SDL_CreateThread()
    1.12 @@ -59,11 +59,9 @@
    1.13     So, in short:
    1.14     Always use the _beginthread() and _endthread() of the calling runtime library!
    1.15  */
    1.16 +#define SDL_PASSED_BEGINTHREAD_ENDTHREAD
    1.17  #ifndef _WIN32_WCE
    1.18 -#include <process.h> // This has _beginthread() and _endthread() defined!
    1.19 -#endif
    1.20 -#ifdef __EMX__
    1.21 -#include <stdlib.h> // This has _beginthread() and _endthread() defined, if -Zmt flag is used!
    1.22 +#include <process.h> /* This has _beginthread() and _endthread() defined! */
    1.23  #endif
    1.24  
    1.25  #ifdef __OS2__