[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d61d443: Define new types on macOS 10.6 (bug#27041)
From: |
Alan Third |
Subject: |
[Emacs-diffs] master d61d443: Define new types on macOS 10.6 (bug#27041) |
Date: |
Wed, 24 May 2017 14:57:26 -0400 (EDT) |
branch: master
commit d61d443fc0559314a2c22b1c120091de88585935
Author: Alan Third <address@hidden>
Commit: Alan Third <address@hidden>
Define new types on macOS 10.6 (bug#27041)
* src/nsterm.h: Enable instancetype typedef for older macOS, and use
correct NSUInteger instead of int.
---
src/nsterm.h | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/nsterm.h b/src/nsterm.h
index 443a40e..d98f0d0 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -62,11 +62,13 @@ typedef CGFloat EmacsCGFloat;
typedef float EmacsCGFloat;
#endif
-/* FIXME: It looks as though instancetype will be supported in GNUstep
- at some point, but I'm not sure what version. */
-#ifdef NS_IMPL_GNUSTEP
+/* FIXME: instancetype is a language built-in, but older versions of
+ Clang don't support it, and I don't know if GCC supports it at all.
+ Should this be tested for in ./configure? */
+#if defined (NS_IMPL_GNUSTEP)
+ || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
typedef id instancetype;
-typedef int NSWindowStyleMask;
+typedef NSUInteger NSWindowStyleMask;
#endif
/* ==========================================================================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master d61d443: Define new types on macOS 10.6 (bug#27041),
Alan Third <=