diff options
| author | Franklin Wei <git@fwei.tk> | 2019-07-07 21:51:41 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2019-07-09 11:20:55 -0400 |
| commit | 71922db6cf64fde49deb0ce12fc2828ca0129b53 (patch) | |
| tree | 41788b64d9fa35b9ca5035f365019a6017cf5d43 /apps/plugins/sdl/src/thread | |
| parent | c7f26de2bfc25865286bfe11b551ff1d3ca7104f (diff) | |
| download | rockbox-71922db6cf64fde49deb0ce12fc2828ca0129b53.zip rockbox-71922db6cf64fde49deb0ce12fc2828ca0129b53.tar.gz rockbox-71922db6cf64fde49deb0ce12fc2828ca0129b53.tar.bz2 rockbox-71922db6cf64fde49deb0ce12fc2828ca0129b53.tar.xz | |
sdl: a couple minor fixes
Prevents system SDL from interfering with thread driver selection. Also
adds test code for alignment faults.
Change-Id: I8bc181922c4a9e764429897dbbaa1ffaabd01126
Diffstat (limited to 'apps/plugins/sdl/src/thread')
| -rw-r--r-- | apps/plugins/sdl/src/thread/SDL_thread_c.h | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/apps/plugins/sdl/src/thread/SDL_thread_c.h b/apps/plugins/sdl/src/thread/SDL_thread_c.h index d0804e9..1cd6835 100644 --- a/apps/plugins/sdl/src/thread/SDL_thread_c.h +++ b/apps/plugins/sdl/src/thread/SDL_thread_c.h @@ -24,24 +24,11 @@ #ifndef _SDL_thread_c_h #define _SDL_thread_c_h -/* Need the definitions of SYS_ThreadHandle */ -#if SDL_THREADS_DISABLED -#include "generic/SDL_systhread_c.h" -#elif SDL_THREAD_BEOS -#include "beos/SDL_systhread_c.h" -#elif SDL_THREAD_DC -#include "dc/SDL_systhread_c.h" -#elif SDL_THREAD_OS2 -#include "os2/SDL_systhread_c.h" -#elif SDL_THREAD_PTH -#include "pth/SDL_systhread_c.h" -#elif SDL_THREAD_SPROC -#include "irix/SDL_systhread_c.h" -#elif SDL_THREAD_WIN32 -#include "win32/SDL_systhread_c.h" -#elif SDL_THREAD_SYMBIAN -#include "symbian/SDL_systhread_c.h" -#elif SDL_THREAD_ROCKBOX +#ifndef SDL_THREAD_ROCKBOX +#define SDL_THREAD_ROCKBOX 1 +#endif + +#if SDL_THREAD_ROCKBOX #include "rockbox/SDL_systhread_c.h" #else #error Need thread implementation for this platform |