diff options
| author | Alan Third | 2017-05-24 19:40:19 +0100 |
|---|---|---|
| committer | Alan Third | 2017-05-24 19:56:23 +0100 |
| commit | d61d443fc0559314a2c22b1c120091de88585935 (patch) | |
| tree | 9b4801dbbee8dcd1634e42aa2d437f994e5a7262 | |
| parent | c0f90833a716a4d577dbd6c4f4f393fad8d07e56 (diff) | |
| download | emacs-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.h | 10 |
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; | |||
| 62 | typedef float EmacsCGFloat; | 62 | typedef 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 | ||
| 68 | typedef id instancetype; | 70 | typedef id instancetype; |
| 69 | typedef int NSWindowStyleMask; | 71 | typedef NSUInteger NSWindowStyleMask; |
| 70 | #endif | 72 | #endif |
| 71 | 73 | ||
| 72 | /* ========================================================================== | 74 | /* ========================================================================== |