From 6ea16de7c69cf0654c9de062d4fd02eee1015728 Mon Sep 17 00:00:00 2001 From: rw-r-r-0644 Date: Fri, 21 Sep 2018 20:22:25 +0200 Subject: [PATCH] threads/wiiu: remove unused SDL_mutex structure definition and only build when requested --- src/thread/wiiu/SDL_sysmutex.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/thread/wiiu/SDL_sysmutex.c b/src/thread/wiiu/SDL_sysmutex.c index c7eaa9340..f0c81699a 100644 --- a/src/thread/wiiu/SDL_sysmutex.c +++ b/src/thread/wiiu/SDL_sysmutex.c @@ -20,18 +20,12 @@ */ #include "../../SDL_internal.h" +#if SDL_THREAD_WIIU + #include #include #include "SDL_thread.h" -struct SDL_mutex -{ - pthread_mutex_t id; -#if FAKE_RECURSIVE_MUTEX - int recursive; - pthread_t owner; -#endif -}; SDL_mutex * SDL_CreateMutex(void) @@ -73,4 +67,6 @@ SDL_UnlockMutex(SDL_mutex * mutex) return 0; } +#endif /* SDL_THREAD_WIIU */ + /* vi: set ts=4 sw=4 expandtab: */ \ No newline at end of file