]> granicus.if.org Git - graphviz/commitdiff
cgraph: include config.h in agxbuf.h to get GVDLL in autotools builds
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 2 Jan 2022 09:21:35 +0000 (10:21 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 9 Jan 2022 08:44:21 +0000 (09:44 +0100)
An upcoming commit which changes agxbuf.h to use GVDLL to control the
storage-class attribute declarations would otherwise cause errors like
this:

C:\Users\magja\graphviz\lib\gvc/gvplugin.c:386: undefined reference to `__imp_agxbprint'

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

lib/cgraph/agxbuf.h

index e1549caae61d9c28ecc6ab52f4026be8808ed802..480857e3932c84cbba586e33de5eb38792f255b7 100644 (file)
@@ -16,6 +16,8 @@ extern "C" {
 
 #include <stddef.h>
 
+#include "config.h"
+
 #ifdef _WIN32
 #   ifdef EXPORT_AGXBUF
 #       define AGXBUF_API __declspec(dllexport)