[client] fix SDL mutex compile errors (#42)

This commit is contained in:
arcnmx 2018-01-29 00:51:14 -05:00 committed by Geoffrey McRae
parent 2114b73c11
commit 9aba969296

View File

@ -54,6 +54,7 @@ static inline void nsleep(uint64_t ns)
#define LG_UNLOCK(x) __sync_lock_release(&x) #define LG_UNLOCK(x) __sync_lock_release(&x)
#define LG_LOCK_FREE(x) #define LG_LOCK_FREE(x)
#else #else
#include <SDL2/SDL.h>
#define LG_LOCK_MODE "Mutex" #define LG_LOCK_MODE "Mutex"
typedef SDL_mutex * LG_Lock; typedef SDL_mutex * LG_Lock;
#define LG_LOCK_INIT(x) (x = SDL_CreateMutex()) #define LG_LOCK_INIT(x) (x = SDL_CreateMutex())