From c09b89ee122c2e35005872e90c1170c1ffe53fbb Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Wed, 2 Sep 2009 21:21:12 +0200 Subject: [PATCH] MAC_OS_X_VERSION_10_6 not defined on pre-10.6 Just use a literal 1060 in header files which do not (and should not) include MacVim.h. --- src/MacVim/DBPrefsWindowController.h | 2 +- src/MacVim/MMVimController.h | 1 - src/MacVim/MMWindowController.h | 2 +- src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/MacVim/DBPrefsWindowController.h b/src/MacVim/DBPrefsWindowController.h index 2e9bf9d4..74ca024f 100644 --- a/src/MacVim/DBPrefsWindowController.h +++ b/src/MacVim/DBPrefsWindowController.h @@ -43,7 +43,7 @@ @interface DBPrefsWindowController : NSWindowController -#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6) +#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060) // 10.6 has turned delegate messages into formal protocols #endif diff --git a/src/MacVim/MMVimController.h b/src/MacVim/MMVimController.h index 9dfba668..be2d3ec1 100644 --- a/src/MacVim/MMVimController.h +++ b/src/MacVim/MMVimController.h @@ -8,7 +8,6 @@ * See README.txt for an overview of the Vim source code. */ -#import #import "MacVim.h" #ifdef MM_ENABLE_PLUGINS diff --git a/src/MacVim/MMWindowController.h b/src/MacVim/MMWindowController.h index 8f2aa2c4..62704b8e 100644 --- a/src/MacVim/MMWindowController.h +++ b/src/MacVim/MMWindowController.h @@ -8,7 +8,7 @@ * See README.txt for an overview of the Vim source code. */ -#import +#import "MacVim.h" diff --git a/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h b/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h index b8073667..26a41b52 100644 --- a/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h +++ b/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h @@ -40,7 +40,7 @@ enum { }; @interface PSMTabBarControl : NSControl -#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6) +#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060) // 10.6 has turned delegate messages into formal protocols #endif -- 2.11.4.GIT