[cairo-xlib-screen] Protect fontconfig call with CAIRO_HAS_FT_FONT

This commit is contained in:
Behdad Esfahbod 2008-06-09 15:21:18 -04:00
parent c8fc587ede
commit 9e1b4704ce

View file

@ -111,8 +111,10 @@ get_integer_default (Display *dpy,
v = XGetDefault (dpy, "Xft", option);
if (v) {
#if CAIRO_HAS_FT_FONT
if (FcNameConstant ((FcChar8 *) v, value))
return TRUE;
#endif
i = strtol (v, &e, 0);
if (e != v)