diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-08 20:07:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-08 20:07:39 +0200 |
commit | 1d3dbcf743be9c72a0df5fc0711553fce287d3f8 (patch) | |
tree | fb20f54b17a8793416776726f70d09c26a86f4fa /src/os_macosx.m | |
parent | 6a2633b00bb00bcf0d994f08d1c54ace2c221b58 (diff) | |
download | vim-git-1d3dbcf743be9c72a0df5fc0711553fce287d3f8.tar.gz |
patch 8.1.0467: cannot build with Mac OS X 10.5v8.1.0467
Problem: Cannot build with Mac OS X 10.5.
Solution: Change #ifdef into #if. (Akshay Hegde, closes #3022)
Diffstat (limited to 'src/os_macosx.m')
-rw-r--r-- | src/os_macosx.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os_macosx.m b/src/os_macosx.m index 752bdae11..50ca361fb 100644 --- a/src/os_macosx.m +++ b/src/os_macosx.m @@ -63,7 +63,7 @@ clip_mch_request_selection(VimClipboard *cbd) NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSPasteboard *pb = [NSPasteboard generalPasteboard]; -#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 NSArray *supportedTypes = [NSArray arrayWithObjects:VimPboardType, NSPasteboardTypeString, nil]; #else @@ -99,7 +99,7 @@ clip_mch_request_selection(VimClipboard *cbd) { /* Use NSPasteboardTypeString. The motion type is detected automatically. */ -#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 NSMutableString *mstring = [[pb stringForType:NSPasteboardTypeString] mutableCopy]; #else @@ -188,7 +188,7 @@ clip_mch_set_selection(VimClipboard *cbd) /* See clip_mch_request_selection() for info on pasteboard types. */ NSPasteboard *pb = [NSPasteboard generalPasteboard]; -#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 NSArray *supportedTypes = [NSArray arrayWithObjects:VimPboardType, NSPasteboardTypeString, nil]; #else @@ -201,7 +201,7 @@ clip_mch_set_selection(VimClipboard *cbd) NSArray *plist = [NSArray arrayWithObjects:motion, string, nil]; [pb setPropertyList:plist forType:VimPboardType]; -#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 [pb setString:string forType:NSPasteboardTypeString]; #else [pb setString:string forType:NSStringPboardType]; |