diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-09-12 10:59:52 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-09-26 11:04:26 +0800 |
commit | cc488945cdbf58c0c69a21cd7ca07e8737271caf (patch) | |
tree | f93899353e40a81df7b7b38bcc50dd5a2cf4b6e5 /pango | |
parent | 6b0aa77d23ac969c12eab00b178957a63befe5bd (diff) | |
download | pango-cc488945cdbf58c0c69a21cd7ca07e8737271caf.tar.gz |
pango-font-private.h: Fix build with DirectWrite
The recent additions to this file must be updated so that this header can be
successfully consumed when building in C++ mode, i.e. with DirectWrite. Cast
items as needed.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-font-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-font-private.h b/pango/pango-font-private.h index fbdad850..a77df662 100644 --- a/pango/pango-font-private.h +++ b/pango/pango-font-private.h @@ -69,7 +69,7 @@ static inline PangoVariant pango_font_get_variant (PangoFont *font) { GTypeClass *klass = (GTypeClass *) PANGO_FONT_GET_CLASS (font); - PangoFontClassPrivate *priv = g_type_class_get_private (klass, PANGO_TYPE_FONT); + PangoFontClassPrivate *priv = (PangoFontClassPrivate *) g_type_class_get_private (klass, PANGO_TYPE_FONT); if (priv->get_variant) return priv->get_variant (font); else |