Fixed bug 3842 - fix SDL_thread.h for emx SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 23 Sep 2017 12:39:52 -0700
branchSDL-1.2
changeset 1154415a09f7c6ed8
parent 11521 e597fa82484b
child 11546 ca935310c206
Fixed bug 3842 - fix SDL_thread.h for emx

Ozkan Sezer

EMX declares _beginthread() / _endthread() in stdlib.h, not process.h.
The attached patch updates the OS/2 case of SDL_thread.h for it. (It
also tidies the unreadable whitespace in win32 case.)
include/SDL_thread.h
     1.1 --- a/include/SDL_thread.h	Fri Sep 22 18:31:25 2017 +0200
     1.2 +++ b/include/SDL_thread.h	Sat Sep 23 12:39:52 2017 -0700
     1.3 @@ -64,6 +64,9 @@
     1.4  #ifndef _WIN32_WCE
     1.5  #include <process.h> /* This has _beginthread() and _endthread() defined! */
     1.6  #endif
     1.7 +#ifdef __EMX__
     1.8 +#include <stdlib.h>
     1.9 +#endif
    1.10  
    1.11  #ifdef __OS2__
    1.12  typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg);