summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-08-26 15:17:58 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2020-08-26 15:17:58 +0800
commit050d89d5b0bb82e1202df7cb863f1f27f97226f5 (patch)
treecb85d13f9fe2ab2911f008f3799175794e434f4f /pango
parent4be6f23e71690e210e5a8ad45f5a5cea3c04cb4f (diff)
downloadpango-050d89d5b0bb82e1202df7cb863f1f27f97226f5.tar.gz
pangowin32-fontmap.c: Fix build on older compilers
Declare variables at the top of the block...
Diffstat (limited to 'pango')
-rw-r--r--pango/pangowin32-fontmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index 8d7e0c06..6bc10a7a 100644
--- a/pango/pangowin32-fontmap.c
+++ b/pango/pangowin32-fontmap.c
@@ -1030,8 +1030,10 @@ pango_win32_font_map_load_font (PangoFontMap *fontmap,
for (i = 0; families[i] && !best_match; ++i)
{
+ PangoWin32Family *win32family;
PING (("name=%s", families[i]));
- PangoWin32Family *win32family = g_hash_table_lookup (win32fontmap->families, families[i]);
+
+ win32family = g_hash_table_lookup (win32fontmap->families, families[i]);
if (win32family)
{
PING (("got win32family"));