emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a4c232e: Fix build on systems with older Pango versions


From: Lars Ingebrigtsen
Subject: master a4c232e: Fix build on systems with older Pango versions
Date: Thu, 21 Oct 2021 09:07:54 -0400 (EDT)

branch: master
commit a4c232effce74028e9a904e15c9616fba33a4143
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix build on systems with older Pango versions
    
    * src/gtkutil.c (xg_weight_to_symbol): Don't break the build on
    older systems.
---
 src/gtkutil.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gtkutil.c b/src/gtkutil.c
index 9a2850d..873f7f2 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -2244,7 +2244,9 @@ Lisp_Object xg_weight_to_symbol (PangoWeight w)
     (w <= PANGO_WEIGHT_THIN ? Qthin                  /* 100 */
      : w <= PANGO_WEIGHT_ULTRALIGHT ? Qultra_light   /* 200 */
      : w <= PANGO_WEIGHT_LIGHT ? Qlight              /* 300 */
+#ifdef PANGO_WEIGHT_SEMILIGHT /* New in 1.36.7 */
      : w <= PANGO_WEIGHT_SEMILIGHT ? Qsemi_light     /* 350 */
+#endif
      : w <= PANGO_WEIGHT_BOOK ? Qbook                /* 380 */
      : w <= PANGO_WEIGHT_NORMAL ? Qnormal            /* 400 */
      : w <= PANGO_WEIGHT_MEDIUM ? Qmedium            /* 500 */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]