From 71922db6cf64fde49deb0ce12fc2828ca0129b53 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 7 Jul 2019 21:51:41 -0400 Subject: sdl: a couple minor fixes Prevents system SDL from interfering with thread driver selection. Also adds test code for alignment faults. Change-Id: I8bc181922c4a9e764429897dbbaa1ffaabd01126 --- apps/plugins/sdl/src/thread/SDL_thread_c.h | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'apps/plugins/sdl/src') 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 @@ #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 -- cgit v1.2.3