include/SDL_thread.h
changeset 3269 a67a961e2171
parent 2859 99210400e8b9
child 3407 d3baf5ac4e37
     1.1 --- a/include/SDL_thread.h	Sat Sep 19 06:24:07 2009 +0000
     1.2 +++ b/include/SDL_thread.h	Sat Sep 19 06:43:45 2009 +0000
     1.3 @@ -48,9 +48,9 @@
     1.4  typedef struct SDL_Thread SDL_Thread;
     1.5  
     1.6  /* Create a thread */
     1.7 -#if (defined(__WIN32__) && !defined(HAVE_LIBC)) || defined(__OS2__)
     1.8 +#if defined(__WIN32__) && !defined(HAVE_LIBC)
     1.9  /*
    1.10 -   We compile SDL into a DLL on OS/2. This means, that it's the DLL which
    1.11 +   We compile SDL into a DLL. This means, that it's the DLL which
    1.12     creates a new thread for the calling process with the SDL_CreateThread()
    1.13     API. There is a problem with this, that only the RTL of the SDL.DLL will
    1.14     be initialized for those threads, and not the RTL of the calling application!
    1.15 @@ -67,11 +67,7 @@
    1.16  #include <process.h>            /* This has _beginthread() and _endthread() defined! */
    1.17  #endif
    1.18  
    1.19 -#ifdef __OS2__
    1.20 -typedef int (*pfnSDL_CurrentBeginThread) (void (*func) (void *), void *,
    1.21 -                                          unsigned, void *arg);
    1.22 -typedef void (*pfnSDL_CurrentEndThread) (void);
    1.23 -#elif __GNUC__
    1.24 +#ifdef __GNUC__
    1.25  typedef unsigned long (__cdecl * pfnSDL_CurrentBeginThread) (void *, unsigned,
    1.26                                                               unsigned
    1.27                                                               (__stdcall *
    1.28 @@ -96,9 +92,7 @@
    1.29                   pfnSDL_CurrentBeginThread pfnBeginThread,
    1.30                   pfnSDL_CurrentEndThread pfnEndThread);
    1.31  
    1.32 -#ifdef __OS2__
    1.33 -#define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthread, _endthread)
    1.34 -#elif defined(_WIN32_WCE)
    1.35 +#if defined(_WIN32_WCE)
    1.36  #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, NULL, NULL)
    1.37  #else
    1.38  #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthreadex, _endthreadex)