Skip to content

Commit 1d3dbcf

Browse files
committed
patch 8.1.0467: cannot build with Mac OS X 10.5
Problem: Cannot build with Mac OS X 10.5. Solution: Change #ifdef into #if. (Akshay Hegde, closes #3022)
1 parent 6a2633b commit 1d3dbcf

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/os_macosx.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
6464

6565
NSPasteboard *pb = [NSPasteboard generalPasteboard];
66-
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
66+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
6767
NSArray *supportedTypes = [NSArray arrayWithObjects:VimPboardType,
6868
NSPasteboardTypeString, nil];
6969
#else
@@ -99,7 +99,7 @@
9999
{
100100
/* Use NSPasteboardTypeString. The motion type is detected automatically.
101101
*/
102-
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
102+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
103103
NSMutableString *mstring =
104104
[[pb stringForType:NSPasteboardTypeString] mutableCopy];
105105
#else
@@ -188,7 +188,7 @@
188188

189189
/* See clip_mch_request_selection() for info on pasteboard types. */
190190
NSPasteboard *pb = [NSPasteboard generalPasteboard];
191-
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
191+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
192192
NSArray *supportedTypes = [NSArray arrayWithObjects:VimPboardType,
193193
NSPasteboardTypeString, nil];
194194
#else
@@ -201,7 +201,7 @@
201201
NSArray *plist = [NSArray arrayWithObjects:motion, string, nil];
202202
[pb setPropertyList:plist forType:VimPboardType];
203203

204-
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
204+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
205205
[pb setString:string forType:NSPasteboardTypeString];
206206
#else
207207
[pb setString:string forType:NSStringPboardType];

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ static char *(features[]) =
792792

793793
static int included_patches[] =
794794
{ /* Add new patch number below this line */
795+
/**/
796+
467,
795797
/**/
796798
466,
797799
/**/

0 commit comments

Comments
 (0)