threads/wiiu: remove unused SDL_mutex structure definition and only build when requested

This commit is contained in:
rw-r-r-0644 2018-09-21 20:22:25 +02:00 committed by Ash Logan
parent 189846753c
commit 6ea16de7c6

View File

@ -20,18 +20,12 @@
*/
#include "../../SDL_internal.h"
#if SDL_THREAD_WIIU
#include <errno.h>
#include <coreinit/mutex.h>
#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: */