]> granicus.if.org Git - graphviz/commitdiff
plugin/pango: include common/globals.h in gvgetfontlist_pango.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 8 Jan 2022 07:51:36 +0000 (08:51 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 10 Jan 2022 08:35:27 +0000 (09:35 +0100)
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]

plugin/pango/gvgetfontlist_pango.c

index cf85ad45ce85d04d1a5473c4c2e772948d338914..c2af11a80a1d4be8a906caaba9dac6e6999a869a 100644 (file)
@@ -52,8 +52,7 @@ char* strcasestr (const char *str, const char *pat)
 #include <gvc/gvplugin_textlayout.h>
 #include <pango/pangocairo.h>
 #include "gvgetfontlist.h"
-
-extern unsigned char Verbose;
+#include <common/globals.h>
 
 #define FNT_BOLD       1<<0
 #define FNT_BOOK       1<<1