mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 10:08:24 +00:00
[client] fix SDL mutex compile errors (#42)
This commit is contained in:
parent
2114b73c11
commit
9aba969296
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user