]> granicus.if.org Git - graphviz/commitdiff
common: include types.h instead of render.h in timing.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 25 Dec 2021 14:46:02 +0000 (15:46 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 25 Dec 2021 21:04:55 +0000 (22:04 +0100)
This file does not explicitly need either of thoses files, but it
includes utils.h that needs types.h. It is better to include this file
directly rather transitively through render.h.

Towards https://gitlab.com/graphviz/graphviz/-/issues/2058.

lib/common/timing.c

index 49d6e5f1e817b849a5661b2686f267d9ecbbf10f..835324f7271b0a9e3f162326874780b76c5bc161 100644 (file)
@@ -27,7 +27,7 @@ typedef struct tms mytime_t;
 #else
 
 #include       <time.h>
-#include <common/render.h>
+#include <common/types.h>
 #include    <common/utils.h>
 
 typedef clock_t mytime_t;