From: Po Lu Date: Mon, 2 May 2022 01:38:36 +0000 (+0800) Subject: Fix the macOS build X-Git-Tag: emacs-29.0.90~1931^2~144 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=48ea81af97b04d507674e06d78c247f868135d48;p=emacs.git Fix the macOS build * src/nsterm.m (ns_font_desc_to_font_spec, syms_of_nsterm): Define missing symbols that are only on GNUstep. --- diff --git a/src/nsterm.m b/src/nsterm.m index 730472d261e..f9d46c73d73 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -6087,7 +6087,7 @@ ns_font_desc_to_font_spec (NSFontDescriptor *desc, NSFont *font) if (tem != nil) lslant = ([tem floatValue] > 0 ? Qitalic : ([tem floatValue] < 0 - ? intern ("reverse-italic") + ? Qreverse_italic : Qnormal)); tem = [dict objectForKey: NSFontWeightTrait]; @@ -10260,6 +10260,9 @@ This variable is ignored on macOS < 10.7 and GNUstep. Default is t. */); DEFSYM (QCordinary, ":ordinary"); DEFSYM (QCfunction, ":function"); DEFSYM (QCmouse, ":mouse"); + DEFSYM (Qcondensed, "condensed"); + DEFSYM (Qreverse_italic, "reverse-italic"); + DEFSYM (Qexpanded, "reverse-italic"); #ifdef NS_IMPL_COCOA Fprovide (Qcocoa, Qnil);