mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 05:41:20 +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
7dc7bf138f
commit
c901fe74f9
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