--- uae/src/td-sdl/thread.h 2018/04/24 17:02:19 1.1.1.1 +++ uae/src/td-sdl/thread.h 2018/04/24 17:16:54 1.1.1.2 @@ -6,8 +6,8 @@ * Copyright 1997, 2001 Bernd Schmidt */ -#include "SDL.h" -#include "SDL_thread.h" +#include +#include /* Sempahores. We use POSIX semaphores; if you are porting this to a machine * with different ones, make them look like POSIX semaphores. */ @@ -27,10 +27,10 @@ typedef SDL_sem *uae_sem_t; typedef SDL_Thread *uae_thread_id; #define BAD_THREAD NULL -static __inline__ int uae_start_thread (void *(*f) (void *), void *arg, uae_thread_id *foo) +STATIC_INLINE int uae_start_thread (void *(*f) (void *), void *arg, uae_thread_id *thread) { - *foo = SDL_CreateThread ((int (*)(void *))f, arg); - return *foo == 0; + *thread = SDL_CreateThread ((int (*)(void *))f, arg); + return *thread == 0; } /* Do nothing; thread exits if thread function returns. */