From: Magnus Jacobsson Date: Sun, 2 Jan 2022 09:21:35 +0000 (+0100) Subject: cgraph: include config.h in agxbuf.h to get GVDLL in autotools builds X-Git-Tag: 3.0.0~87^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38df5db0c49a9f36629d14d6b18fdd4ba8aca5bb;p=graphviz 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. --- 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)