]> git.eshelyaron.com Git - emacs.git/commitdiff
Include Cairo FreeType header when available
authorPo Lu <luangruo@yahoo.com>
Sat, 29 Oct 2022 00:38:09 +0000 (08:38 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 29 Oct 2022 00:38:43 +0000 (08:38 +0800)
* src/xsettings.c: Include cairo-ft.h if CAIRO_HAS_FT_FONT.
(bug#58830)

src/xsettings.c

index c4c70ad8460e43564c0af6d4baf60888558d05bc..15e7ff54995e260cecf3b8118962e8ee9a7de2c2 100644 (file)
@@ -54,13 +54,14 @@ typedef unsigned int CARD32;
 #include <gconf/gconf-client.h>
 #endif
 
-#if defined USE_CAIRO || defined HAVE_XFT
 #ifdef USE_CAIRO
 #include <fontconfig/fontconfig.h>
-#include <cairo-ft.h>
-#else  /* HAVE_XFT */
+#elif defined HAVE_XFT
 #include <X11/Xft/Xft.h>
 #endif
+
+#if defined USE_CAIRO && defined CAIRO_HAS_FT_FONT
+#include <cairo/cairo-ft.h>
 #endif
 
 static char *current_mono_font;