summaryrefslogtreecommitdiff
path: root/src/nsterm.h
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2022-04-19 05:05:17 +0100
committerAlan Third <alan@idiocy.org>2022-04-25 19:08:54 +0100
commit96ec2ac7d0bdb6b1193217b35f7d74d79b7c2033 (patch)
tree4d31569fcccc31e449a72c8f021a9b2668b5e023 /src/nsterm.h
parent42366383c6327e731e286266665d1bb3d6ab1526 (diff)
downloademacs-96ec2ac7d0bdb6b1193217b35f7d74d79b7c2033.tar.gz
Fix nsmenu compilation under macOS 10.6
* src/nsmenu.m ([EmacsMenu fillWithWidgetValue:]): Replace modern shorthand dictionary and array definitions. * src/nsterm.h (NSTextAlignmentRight): Redefine if necessary. * src/macfont.m (mac_font_create_preferred_family_for_attributes): isOperatingSystemAtLeastVersion is new in macOS 10.10, so it's probably wrong to use it to check whether we're below 10.9. (mac_font_copy_default_descriptors_for_language): (mac_font_copy_default_name_for_charset_and_languages): It seems these functions are only used on macOS 10.8 and below. * src/nsterm.m ([NSColor colorUsingDefaultColorSpace]): Use the generic colorspace. (ns_parent_window_rect): (ns_frame_scale_factor): ([EmacsWindow setParentChildRelationships]): Fix macOS version stuff. Co-authored-by: Po Lu <luangruo@yahoo.com>
Diffstat (limited to 'src/nsterm.h')
-rw-r--r--src/nsterm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nsterm.h b/src/nsterm.h
index 4cba5c0be8f..5b121ede98f 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -1290,6 +1290,7 @@ extern char gnustep_base_version[]; /* version tracking */
#define NSAlertStyleCritical NSCriticalAlertStyle
#define NSControlSizeRegular NSRegularControlSize
#define NSCompositingOperationCopy NSCompositeCopy
+#define NSTextAlignmentRight NSRightTextAlignment
/* And adds NSWindowStyleMask. */
#ifdef __OBJC__