diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | macosx/tkMacOSXMenu.c | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2003-08-12 Daniel Steffen <das@users.sourceforge.net> + + * macosx/tkMacOSXMenu.c: fixed C99'ism that breaks gcc 2.95. + 2003-07-28 Pat Thoyts <patthoyts@users.sourceforge.net> * 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); } |