mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qfvis] Fix pthread portability macros
Those that were defined were incorrectly defined (didn't swallow the parameter), and portal lock macros were missing.
This commit is contained in:
parent
f85836762a
commit
9b51907ec8
1 changed files with 5 additions and 2 deletions
|
@ -65,8 +65,11 @@ extern pthread_rwlock_t *portal_locks;
|
|||
#define UNLOCK_PORTAL(p) UNLOCK (&portal_locks[p - portals])
|
||||
|
||||
#else
|
||||
#define LOCK
|
||||
#define UNLOCK
|
||||
#define LOCK(l)
|
||||
#define UNLOCK(l)
|
||||
#define WRLOCK_PORTAL(p)
|
||||
#define RDLOCK_PORTAL(p)
|
||||
#define UNLOCK_PORTAL(p)
|
||||
#endif
|
||||
|
||||
#include "QF/set.h"
|
||||
|
|
Loading…
Reference in a new issue