summaryrefslogtreecommitdiff
path: root/pango/pangocoretext-fontmap.c
diff options
context:
space:
mode:
authorRyan Schmidt <git@ryandesign.com>2018-08-04 11:57:31 -0500
committerRyan Schmidt <git@ryandesign.com>2018-08-04 11:57:31 -0500
commit3d04cc2bbdce0a8b561d0e19255309f8d470816e (patch)
treed705ac9869e9bdca2e3f78e27da7cdc38afc2b2e /pango/pangocoretext-fontmap.c
parent67471cbfe24cd4418e9e97837ac85207f0d974de (diff)
downloadpango-3d04cc2bbdce0a8b561d0e19255309f8d470816e.tar.gz
Fix build failure in C89 mode
Fixes build error with default compilers on Mac OS X 10.6 and earlier: pangocoretext-fontmap.c: In function ‘pango_core_text_fontset_new’: pangocoretext-fontmap.c:1563: error: ‘for’ loop initial declaration used outside C99 mode
Diffstat (limited to 'pango/pangocoretext-fontmap.c')
-rw-r--r--pango/pangocoretext-fontmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index cb3f6ff0..6fc8a279 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -1555,12 +1555,13 @@ pango_core_text_fontset_new (PangoCoreTextFontsetKey *key,
const gchar *family;
gchar *name;
GPtrArray *fonts;
+ int i;
fonts = g_ptr_array_new ();
family = pango_font_description_get_family (description);
family_names = g_strsplit (family ? family : "", ",", -1);
- for (int i = 0; family_names[i]; ++i)
+ for (i = 0; family_names[i]; ++i)
{
name = g_utf8_casefold (family_names[i], -1);
font_family = g_hash_table_lookup (key->fontmap->families, name);