From 6907a6b43eacfb877298c788dd2d457c7ecbd8bb Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Tue, 1 Sep 2009 22:14:12 +0200 Subject: [PATCH] Declare PSMTabBarControl delegate on 10.6 This avoids a compilation warning, nothing else. --- src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h b/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h index bdf971b25f..440f6a7566 100644 --- a/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h +++ b/src/MacVim/PSMTabBarControl/source/PSMTabBarControl.h @@ -39,7 +39,12 @@ enum { PSMTab_PositionSingleMask = 1 << 7 }; -@interface PSMTabBarControl : NSControl { +@interface PSMTabBarControl : NSControl +#if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5) + // 10.6 has turned delegate messages into formal protocols + +#endif +{ // control basics NSMutableArray *_cells; // the cells that draw the tabs