From 48ea81af97b04d507674e06d78c247f868135d48 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 2 May 2022 09:38:36 +0800 Subject: [PATCH] Fix the macOS build * src/nsterm.m (ns_font_desc_to_font_spec, syms_of_nsterm): Define missing symbols that are only on GNUstep. --- src/nsterm.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.2