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 | |
parent | c7f26de2bfc25865286bfe11b551ff1d3ca7104f (diff) | |
download | rockbox-71922db6cf64fde49deb0ce12fc2828ca0129b53.tar.gz rockbox-71922db6cf64fde49deb0ce12fc2828ca0129b53.zip |
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')
-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 d0804e9a81..1cd6835d6f 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 @@ | |||
24 | #ifndef _SDL_thread_c_h | 24 | #ifndef _SDL_thread_c_h |
25 | #define _SDL_thread_c_h | 25 | #define _SDL_thread_c_h |
26 | 26 | ||
27 | /* Need the definitions of SYS_ThreadHandle */ | 27 | #ifndef SDL_THREAD_ROCKBOX |
28 | #if SDL_THREADS_DISABLED | 28 | #define SDL_THREAD_ROCKBOX 1 |
29 | #include "generic/SDL_systhread_c.h" | 29 | #endif |
30 | #elif SDL_THREAD_BEOS | 30 | |
31 | #include "beos/SDL_systhread_c.h" | 31 | #if SDL_THREAD_ROCKBOX |
32 | #elif SDL_THREAD_DC | ||
33 | #include "dc/SDL_systhread_c.h" | ||
34 | #elif SDL_THREAD_OS2 | ||
35 | #include "os2/SDL_systhread_c.h" | ||
36 | #elif SDL_THREAD_PTH | ||
37 | #include "pth/SDL_systhread_c.h" | ||
38 | #elif SDL_THREAD_SPROC | ||
39 | #include "irix/SDL_systhread_c.h" | ||
40 | #elif SDL_THREAD_WIN32 | ||
41 | #include "win32/SDL_systhread_c.h" | ||
42 | #elif SDL_THREAD_SYMBIAN | ||
43 | #include "symbian/SDL_systhread_c.h" | ||
44 | #elif SDL_THREAD_ROCKBOX | ||
45 | #include "rockbox/SDL_systhread_c.h" | 32 | #include "rockbox/SDL_systhread_c.h" |
46 | #else | 33 | #else |
47 | #error Need thread implementation for this platform | 34 | #error Need thread implementation for this platform |