From: handa Date: Tue, 12 Oct 2004 12:19:15 +0000 (+0000) Subject: (ft_list_generic): Fix for the case of not X-Git-Tag: REL-1-2-0~127 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7683091c63df05a095c60512abbb380a91b7995e;p=m17n%2Fm17n-lib.git (ft_list_generic): Fix for the case of not HAVE_FONTCONFIG. --- diff --git a/src/font-ft.c b/src/font-ft.c index d171775..006535e 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -486,8 +486,8 @@ ft_list_family (MSymbol family) static MPlist * ft_list_generic (MSymbol generic) { - GenericFamilyInfo *info = msymbol_get (generic, M_generic_family_info); #ifdef HAVE_FONTCONFIG + GenericFamilyInfo *info = msymbol_get (generic, M_generic_family_info); FcPattern *pattern; if (! info) @@ -516,8 +516,10 @@ ft_list_generic (MSymbol generic) i++; } } -#endif /* HAVE_FONTCONFIG */ return info->list; +#else /* not HAVE_FONTCONFIG */ + return NULL; +#endif /* not HAVE_FONTCONFIG */ }