[pango/pango2-windows: 122/126] pango-fontmap.c: Fix build on Windows




commit 1dd09e511c1d701584a99a0f79a64986ec94b2c9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Jun 9 15:47:57 2022 +0800

    pango-fontmap.c: Fix build on Windows
    
    We need to make sure that we include the correct headers, as well as the
    headers we need for pango_cairo_context_get_merged_font_options () and
    getenv().

 pango/pango-fontmap.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c
index a59fa243..0c3aa177 100644
--- a/pango/pango-fontmap.c
+++ b/pango/pango-fontmap.c
@@ -20,6 +20,7 @@
 
 #include "config.h"
 #include <math.h>
+#include <stdlib.h>
 
 #include <gio/gio.h>
 
@@ -41,7 +42,7 @@
 #endif
 
 #ifdef HAVE_DIRECT_WRITE
-#include "pangodwrite-hbfontmap.h"
+#include "pangodwrite-fontmap.h"
 #endif
 
 #ifdef HAVE_FONTCONFIG
@@ -50,6 +51,7 @@
 
 #ifdef HAVE_CAIRO
 #include <cairo.h>
+#include "pangocairo-private.h"
 #endif
 
 #include <hb-ot.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]