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

This commit is contained in:
arcnmx authored and Geoffrey McRae committed 2018-01-29 16:51:14 +11:00
1 parent 2114b73c11
commit 9aba969296
1 file changed
+1
+1
View File
@@ -54,6 +54,7 @@ static inline void nsleep(uint64_t ns)
#define LG_UNLOCK(x) __sync_lock_release(&x)
#define LG_LOCK_FREE(x)
#else
#include <SDL2/SDL.h>
#define LG_LOCK_MODE "Mutex"
typedef SDL_mutex * LG_Lock;
#define LG_LOCK_INIT(x) (x = SDL_CreateMutex())