build fails: pango_cairo_font_map_set_default() not declared

Jun T <[email protected]> Mon, 2 Dec 2024 13:39:05 +0900
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <[email protected]>
After the commit:

commit 35643d86af5f41011723c7363172628283c0b96d
    wxt: release per-thread font data structures before forking

build fails on my Mac (with clang) as:
wxterminal/wxt_gui.cpp:3868:3: error: use of undeclared identifier 'pango_cairo_font_map_set_default'

We need to include <pango/pangocairo.h> either in wxt_gui.cpp (as in
the patch below) or in wxt_gui.h (whichever you prefer).


diff --git a/src/wxterminal/wxt_gui.cpp b/src/wxterminal/wxt_gui.cpp
index 2cd096f01..35528e2cb 100644
--- a/src/wxterminal/wxt_gui.cpp
+++ b/src/wxterminal/wxt_gui.cpp
@@ -129,6 +129,9 @@ extern "C" {
 #ifdef HAVE_SYS_SELECT_H
 # include <sys/select.h>
 #endif
+#ifdef HAVE_WORKING_FORK
+# include <pango/pangocairo.h>	// for pango_cairo_font_map_set_default()
+#endif
 }
 
 /* Interactive toggle control variables




_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta