From 41a55a330f518254da795719ac6e3085254d4110 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 25 Jul 2021 15:50:46 +0300 Subject: [PATCH] Fix compilation of xftfont.c with old fontconfig * src/xftfont.c (FC_LCD_FILTER): Define if undefined, for older versions of fontconfig. This was mistakenly deleted 2 years ago. (Bug#49722) --- src/xftfont.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xftfont.c b/src/xftfont.c index f7349316366..d8ad4035481 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -33,6 +33,12 @@ along with GNU Emacs. If not, see . */ #include "ftfont.h" #include "pdumper.h" +#ifndef FC_LCD_FILTER +/* Older fontconfig versions don't have FC_LCD_FILTER. */ +# define FC_LCD_FILTER "lcdfilter" +#endif + + /* Xft font driver. */ /* Structure pointed by (struct face *)->extra */ -- 2.39.2