]> granicus.if.org Git - graphviz/commitdiff
ortho: swap fPQ.h header guards for more modern #pragma once
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 6 Sep 2022 00:56:18 +0000 (17:56 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 11 Sep 2022 16:29:44 +0000 (09:29 -0700)
lib/ortho/fPQ.h

index ed37708aa126352913431c728f115aac8f9d9731..4856a61b2a63a894b337c30866d4077260770787 100644 (file)
@@ -13,6 +13,8 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #include <cgraph/alloc.h>
 #include <ortho/sgraph.h>
 
@@ -22,9 +24,6 @@
 #define N_EDGE(n) (n)->n_edge
 #define E_WT(e) (e->weight)
 
-#ifndef FPQ_H
-#define FPQ_H
-
 void PQgen(int sz);
 void PQfree(void);
 void PQinit(void);
@@ -35,4 +34,3 @@ void PQdownheap (int k);
 snode* PQremove (void);
 void PQupdate (snode* n, int d);
 void PQprint (void);
-#endif