From 38df5db0c49a9f36629d14d6b18fdd4ba8aca5bb Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 2 Jan 2022 10:21:35 +0100 Subject: [PATCH] cgraph: include config.h in agxbuf.h to get GVDLL in autotools builds 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cgraph/agxbuf.h b/lib/cgraph/agxbuf.h index e1549caae..480857e39 100644 --- a/lib/cgraph/agxbuf.h +++ b/lib/cgraph/agxbuf.h @@ -16,6 +16,8 @@ extern "C" { #include +#include "config.h" + #ifdef _WIN32 # ifdef EXPORT_AGXBUF # define AGXBUF_API __declspec(dllexport) -- 2.40.0