summaryrefslogtreecommitdiffstats
path: root/src/glu/sgi/libtess/priorityq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glu/sgi/libtess/priorityq.c')
-rw-r--r--src/glu/sgi/libtess/priorityq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glu/sgi/libtess/priorityq.c b/src/glu/sgi/libtess/priorityq.c
index 11f0263ac93..c6b99cce552 100644
--- a/src/glu/sgi/libtess/priorityq.c
+++ b/src/glu/sgi/libtess/priorityq.c
@@ -85,7 +85,7 @@ void pqDeletePriorityQ( PriorityQ *pq )
#define LT(x,y) (! LEQ(y,x))
#define GT(x,y) (! LEQ(x,y))
-#define Swap(a,b) if(1){PQkey *tmp = *a; *a = *b; *b = tmp;}else
+#define Swap(a,b) do{PQkey *tmp = *a; *a = *b; *b = tmp;}while(0)
/* really __gl_pqSortInit */
int pqInit( PriorityQ *pq )