summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-screen.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-06-09 15:21:18 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-06-10 02:19:05 -0400
commit9e1b4704ce420cd5fd9377e3cb0f522297e00a1a (patch)
tree46aefccb17b3d7c0c00d53127dc0b66f8eeb6e35 /src/cairo-xlib-screen.c
parentc8fc587edea8619ecd30a170063e79f9d4183011 (diff)
[cairo-xlib-screen] Protect fontconfig call with CAIRO_HAS_FT_FONT
Diffstat (limited to 'src/cairo-xlib-screen.c')
-rw-r--r--src/cairo-xlib-screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c
index 60421cda..1b2340bf 100644
--- a/src/cairo-xlib-screen.c
+++ b/src/cairo-xlib-screen.c
@@ -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)