From 28f8a2d18209d1878de51374aee00efd7d067676 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 23 Sep 2017 12:39:52 -0700 Subject: [PATCH] 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/SDL_thread.h b/include/SDL_thread.h index 9ebe00edd..b7d5a9172 100644 --- a/include/SDL_thread.h +++ b/include/SDL_thread.h @@ -64,6 +64,9 @@ typedef struct SDL_Thread SDL_Thread; #ifndef _WIN32_WCE #include /* This has _beginthread() and _endthread() defined! */ #endif +#ifdef __EMX__ +#include +#endif #ifdef __OS2__ typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg);