diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-08-26 15:17:58 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-08-26 15:17:58 +0800 |
commit | 050d89d5b0bb82e1202df7cb863f1f27f97226f5 (patch) | |
tree | cb85d13f9fe2ab2911f008f3799175794e434f4f /pango | |
parent | 4be6f23e71690e210e5a8ad45f5a5cea3c04cb4f (diff) | |
download | pango-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.c | 4 |
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")); |