From: Eli Zaretskii Date: Sun, 25 Jul 2021 12:50:46 +0000 (+0300) Subject: Fix compilation of xftfont.c with old fontconfig X-Git-Tag: emacs-28.0.90~1698 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=41a55a330f518254da795719ac6e3085254d4110;p=emacs.git 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) --- 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 */