emacs-diffs
[Top][All Lists]
Advanced

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

master 48ea81af97: Fix the macOS build


From: Po Lu
Subject: master 48ea81af97: Fix the macOS build
Date: Sun, 1 May 2022 21:38:50 -0400 (EDT)

branch: master
commit 48ea81af97b04d507674e06d78c247f868135d48
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 730472d261..f9d46c73d7 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);



reply via email to

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