[pango/pango2-windows: 82/88] pango-fontmap-private.h: Use C linkage




commit db23f8f77a90d73e18f65093ff5f8638dccc507c
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 e2410e96..6c0c5e04 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]