[pango/pango2-windows: 120/123] pango-fontmap-private.h: Use C linkage




commit ccfcdbcb7b988659f934caa08e3ebeaf06aa5842
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Jun 9 16:04:04 2022 +0800

    pango-fontmap-private.h: Use C linkage
    
    Sadly, the DirectWrite support used on Windows must be written in C++, so
    make sure that we use extern "C" so that things can link properly.

 pango/pango-fontmap-private.h | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/pango/pango-fontmap-private.h b/pango/pango-fontmap-private.h
index e2410e96c..6c0c5e043 100644
--- a/pango/pango-fontmap-private.h
+++ b/pango/pango-fontmap-private.h
@@ -24,6 +24,8 @@
 #include <pango/pango-fontmap-private.h>
 
 
+G_BEGIN_DECLS
+
 struct _PangoFontMap
 {
   GObject parent_instance;
@@ -67,3 +69,5 @@ void                    pango_font_map_repopulate    (PangoFontMap *self,
                                                       gboolean      add_synthetic);
 
 void                    pango_font_map_changed       (PangoFontMap *self);
+
+G_END_DECLS


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