Fix SDL_TryLockMutex compile error when FAKE_RECURSIVE_MUTEX is defined

This commit is contained in:
Andreas Schiffler 2013-03-09 09:24:43 -08:00
parent edbf26b139
commit c51712467d

View file

@ -134,7 +134,7 @@ SDL_TryLockMutex(SDL_mutex * mutex)
retval = 0; retval = 0;
#if FAKE_RECURSIVE_MUTEX #if FAKE_RECURSIVE_MUTEX
this_thread = pthread_self(); this_thread = pthread_self();
if (mutex->owner == this_thead) { if (mutex->owner == this_thread) {
++mutex->recursive; ++mutex->recursive;
} else { } else {
/* The order of operations is important. /* The order of operations is important.