aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Third2017-05-24 19:40:19 +0100
committerAlan Third2017-05-24 19:56:23 +0100
commitd61d443fc0559314a2c22b1c120091de88585935 (patch)
tree9b4801dbbee8dcd1634e42aa2d437f994e5a7262
parentc0f90833a716a4d577dbd6c4f4f393fad8d07e56 (diff)
downloademacs-d61d443fc0559314a2c22b1c120091de88585935.tar.gz
emacs-d61d443fc0559314a2c22b1c120091de88585935.zip
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.
-rw-r--r--src/nsterm.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nsterm.h b/src/nsterm.h
index 443a40ed6f5..d98f0d03d39 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -62,11 +62,13 @@ typedef CGFloat EmacsCGFloat;
62typedef float EmacsCGFloat; 62typedef float EmacsCGFloat;
63#endif 63#endif
64 64
65/* FIXME: It looks as though instancetype will be supported in GNUstep 65/* FIXME: instancetype is a language built-in, but older versions of
66 at some point, but I'm not sure what version. */ 66 Clang don't support it, and I don't know if GCC supports it at all.
67#ifdef NS_IMPL_GNUSTEP 67 Should this be tested for in ./configure? */
68#if defined (NS_IMPL_GNUSTEP)
69 || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
68typedef id instancetype; 70typedef id instancetype;
69typedef int NSWindowStyleMask; 71typedef NSUInteger NSWindowStyleMask;
70#endif 72#endif
71 73
72/* ========================================================================== 74/* ==========================================================================