]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: Fix build with graphviz >= 10.0.1
authorSudhanshu Tiwari <sdansht@gmail.com>
Thu, 15 Feb 2024 10:09:14 +0000 (15:39 +0530)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 15 Feb 2024 10:54:34 +0000 (11:54 +0100)
Replaced TRUE with 1

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1524

libvaladoc/gvc-compat.c

index 5846334632ebdbc2c088e4929ca2781ebe575fa6..29da6342b9f35c7086f9519715fecb6dc0c9a577 100644 (file)
@@ -48,7 +48,7 @@ Agnode_t*
 valadoc_compat_gvc_graph_create_node (Agraph_t* graph, const char *name)
 {
 #ifdef WITH_CGRAPH
-       return agnode (graph, (char*) name, TRUE);
+       return agnode (graph, (char*) name, 1 /*TRUE*/);
 #else
        return agnode (graph, (char*) name);
 #endif
@@ -68,7 +68,7 @@ Agedge_t*
 valadoc_compat_gvc_graph_create_edge (Agraph_t* graph, Agnode_t* from, Agnode_t* to)
 {
 #ifdef WITH_CGRAPH
-       return agedge (graph, from, to, NULL, TRUE);
+       return agedge (graph, from, to, NULL, 1 /*TRUE*/);
 #else
        return agedge (graph, from, to);
 #endif