]> granicus.if.org Git - vim/commitdiff
patch 8.1.0467: cannot build with Mac OS X 10.5 v8.1.0467
authorBram Moolenaar <Bram@vim.org>
Mon, 8 Oct 2018 18:07:39 +0000 (20:07 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 8 Oct 2018 18:07:39 +0000 (20:07 +0200)
Problem:    Cannot build with Mac OS X 10.5.
Solution:   Change #ifdef into #if. (Akshay Hegde, closes #3022)

src/os_macosx.m
src/version.c

index 752bdae116cb743761226989121517d1a1ed52c4..50ca361fbb9bc91f345512007b08a3962f1ee598 100644 (file)
@@ -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];
index c416032f56bc988f7828dbd7b919b74dd61f0ff4..def449a5763d1c66937e61096b0c72322f0a5d41 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    467,
 /**/
     466,
 /**/