From: Magnus Jacobsson Date: Sat, 8 Jan 2022 07:51:36 +0000 (+0100) Subject: plugin/pango: include common/globals.h in gvgetfontlist_pango.c X-Git-Tag: 3.0.0~82^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5646c8cd37bacbd4602ed2ae7339827d2269c587;p=graphviz plugin/pango: include common/globals.h in gvgetfontlist_pango.c An upcoming commit which enables code that uses the Verbose global variable would otherwise cause this error: gvgetfontlist_pango.obj : error LNK2019: unresolved external symbol _Verbose referenced in function _get_font_mapping [C:\GitLab-Runner\builds\magjac\graphviz\build\plugin\pango\gvplugin_pango.vcxproj] C:\GitLab-Runner\builds\magjac\graphviz\build\plugin\pango\Release\gvplugin_pango.dll : fatal error LNK1120: 1 unresolved externals [C:\GitLab-Runner\builds\magjac\graphviz\build\plugin\pango\gvplugin_pango.vcxproj] --- diff --git a/plugin/pango/gvgetfontlist_pango.c b/plugin/pango/gvgetfontlist_pango.c index cf85ad45c..c2af11a80 100644 --- a/plugin/pango/gvgetfontlist_pango.c +++ b/plugin/pango/gvgetfontlist_pango.c @@ -52,8 +52,7 @@ char* strcasestr (const char *str, const char *pat) #include #include #include "gvgetfontlist.h" - -extern unsigned char Verbose; +#include #define FNT_BOLD 1<<0 #define FNT_BOOK 1<<1