From 5af6340eef9833f0f8e878939e88d98b11813578 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 6 Aug 2019 12:56:02 -0400 Subject: Reinstate the return type of pango_fc_font_lock_face() We did not remove the freetype dependency from libpango anyway, so bite the bullet, and keep including freetype headers. Changing the return type to gpointer broke C++ users, where casts from void* are not automatic. --- pango/pangofc-font-private.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'pango/pangofc-font-private.h') diff --git a/pango/pangofc-font-private.h b/pango/pangofc-font-private.h index 0f538bb7..30a2e7fd 100644 --- a/pango/pangofc-font-private.h +++ b/pango/pangofc-font-private.h @@ -25,20 +25,6 @@ #include #include -/* Freetype has undefined macros in its header */ -#ifdef PANGO_COMPILATION -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wundef" -#endif - -#include -#include FT_FREETYPE_H -#include - -#ifdef PANGO_COMPILATION -#pragma GCC diagnostic pop -#endif - G_BEGIN_DECLS @@ -108,7 +94,7 @@ struct _PangoFcFontClass PangoFontClass parent_class; /*< public >*/ - gpointer (*lock_face) (PangoFcFont *font); + FT_Face (*lock_face) (PangoFcFont *font); void (*unlock_face) (PangoFcFont *font); gboolean (*has_char) (PangoFcFont *font, gunichar wc); -- cgit v1.2.1