From c901fe74f998d825f64ae9ef793614b5463f3f99 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 26 Mar 2021 15:27:48 +0900 Subject: [PATCH] [qfvis] Fix pthread portability macros Those that were defined were incorrectly defined (didn't swallow the parameter), and portal lock macros were missing. --- tools/qfvis/include/vis.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/qfvis/include/vis.h b/tools/qfvis/include/vis.h index a0863d4be..dc24d17f4 100644 --- a/tools/qfvis/include/vis.h +++ b/tools/qfvis/include/vis.h @@ -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"