]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix build on systems with older Pango versions
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 21 Oct 2021 13:07:08 +0000 (15:07 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 21 Oct 2021 13:07:08 +0000 (15:07 +0200)
* src/gtkutil.c (xg_weight_to_symbol): Don't break the build on
older systems.

src/gtkutil.c

index 9a2850dea8f104f47595556f5f743e86200aeafb..873f7f2d683de526e3bc55b742d7f46c8f3dd61d 100644 (file)
@@ -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 */