Skip to content

Commit

Permalink
Fixed bug 3842 - fix SDL_thread.h for emx
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
slouken committed Sep 23, 2017
1 parent b28d5be commit 28f8a2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/SDL_thread.h
Expand Up @@ -64,6 +64,9 @@ typedef struct SDL_Thread SDL_Thread;
#ifndef _WIN32_WCE
#include <process.h> /* This has _beginthread() and _endthread() defined! */
#endif
#ifdef __EMX__
#include <stdlib.h>
#endif

#ifdef __OS2__
typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg);
Expand Down

0 comments on commit 28f8a2d

Please sign in to comment.