[pango/pango1-dwrite: 24/24] pango-font-private.h: Fix build with DirectWrite
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango1-dwrite: 24/24] pango-font-private.h: Fix build with DirectWrite
- Date: Mon, 26 Sep 2022 03:04:50 +0000 (UTC)
commit cc488945cdbf58c0c69a21cd7ca07e8737271caf
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Sep 12 10:59:52 2022 +0800
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.
pango/pango-font-private.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pango-font-private.h b/pango/pango-font-private.h
index fbdad850d..a77df6629 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]