]> granicus.if.org Git - graphviz/commitdiff
common: include config.h in colorprocs.h to get GVDLL in autotools builds
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 11 Dec 2021 14:57:39 +0000 (15:57 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 28 Dec 2021 22:19:26 +0000 (23:19 +0100)
An upcoming commit that corrects the storage-class attribute
declarations in colorprocs.h would otherwise cause this error:

/usr/lib/gcc/x86_64-pc-cygwin/10/../../../../x86_64-pc-cygwin/bin/ld: ../../lib/sparse/.libs/libsparse_C.a(DotIO.o): in function `Import_coord_clusters_from_dot':
/home/magja/graphviz/lib/sparse/DotIO.c:577: undefined reference to `colorxlate'

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

lib/common/colorprocs.h

index 598950669bc8cd724a8f87cdcf514b6dabca2500..fcf959928b51f8af5d8d0acfe0745992653ae611 100644 (file)
@@ -10,6 +10,8 @@
 
 #pragma once
 
+#include "config.h"
+
 #include "color.h"
 
 #ifdef __cplusplus