dri: Rework planar image interface
[mesa.git] / src / glu / sgi / libtess / priorityq.c
index 11f0263ac93e595302653e4d1bb6599240e79a22..c6b99cce55200f85daada9db4b01823964821f99 100644 (file)
@@ -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 )