diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index bf6977577..e14305348 100644 --- a/src/cairo-ft-font.c +++ b/src/cairo-ft-font.c @@ -64,6 +64,9 @@ /* Fontconfig version older than 2.6 didn't have these options */ #ifndef FC_LCD_FILTER #define FC_LCD_FILTER "lcdfilter" +#endif +/* Stupid Ubuntu defined FC_LCD_FILTER without defining the following */ +#ifndef FC_LCD_NONE #define FC_LCD_NONE 0 #define FC_LCD_DEFAULT 1 #define FC_LCD_LIGHT 2 diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c index c3d2fd7e2..ebce8a2f9 100644 --- a/src/cairo-xlib-screen.c +++ b/src/cairo-xlib-screen.c @@ -135,6 +135,9 @@ get_integer_default (Display *dpy, /* Fontconfig version older than 2.6 didn't have these options */ #ifndef FC_LCD_FILTER #define FC_LCD_FILTER "lcdfilter" +#endif +/* Stupid Ubuntu defined FC_LCD_FILTER without defining the following */ +#ifndef FC_LCD_NONE #define FC_LCD_NONE 0 #define FC_LCD_DEFAULT 1 #define FC_LCD_LIGHT 2