From b0f648ca07ee75943d80ed107f90e99616870a35 Mon Sep 17 00:00:00 2001 From: das Date: Tue, 12 Aug 2003 08:49:22 +0000 Subject: * macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95. --- ChangeLog | 4 ++++ macosx/tkMacOSXMenu.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b60e39f..96a4eaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-08-12 Daniel Steffen + + * macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95. + 2003-07-28 Pat Thoyts * win/tkWinDialog.c: Applied patch from bug #611615 which fixes a diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c index a69e871..8005558 100644 --- a/macosx/tkMacOSXMenu.c +++ b/macosx/tkMacOSXMenu.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.9 2003/07/18 11:04:59 vincentdarley Exp $ + * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.10 2003/08/12 08:49:22 das Exp $ */ #include "tkMacOSXInt.h" #include "tkMenuButton.h" @@ -2144,8 +2144,9 @@ TkMacOSXDispatchMenuEvent( if ((helpMenuRef != NULL) && (helpMenuRef->menuPtr != NULL)) { MenuRef outHelpMenu; MenuItemIndex itemIndex; + int newIndex; HMGetHelpMenu(&outHelpMenu, &itemIndex); - int newIndex = index - itemIndex; + newIndex = index - itemIndex; result = TkInvokeMenu(currentMenuBarInterp, helpMenuRef->menuPtr, newIndex); } -- cgit v0.12