summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authordas <das>2005-11-27 06:53:36 (GMT)
committerdas <das>2005-11-27 06:53:36 (GMT)
commitbbef3b32df802f51a1770f67fb2bf0b9fb723050 (patch)
tree91e6eb3b7eef01eecf0add4e9b6ef6e90d52983b /macosx/tkMacOSXMenu.c
parent1f361e356d1375a9ac139920189530f7edf1b322 (diff)
downloadtk-bbef3b32df802f51a1770f67fb2bf0b9fb723050.zip
tk-bbef3b32df802f51a1770f67fb2bf0b9fb723050.tar.gz
tk-bbef3b32df802f51a1770f67fb2bf0b9fb723050.tar.bz2
* macosx/tkMacOSXMenu.c:
* macosx/tkMacOSXMenus.c: * macosx/tkMacOSXMenubutton.c: define OSX 10.3 or later only constants if necessary to allow compilation on OSX 10.2
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r--macosx/tkMacOSXMenu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 9b3c9a6..275846d 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.6.2.13 2005/11/27 06:47:33 das Exp $
+ * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.6.2.14 2005/11/27 06:53:36 das Exp $
*/
#include "tkMacOSXInt.h"
#include "tkMenubutton.h"
@@ -18,12 +18,6 @@
#include "tkMacOSXInt.h"
#undef Status
-#if !defined(MAC_OS_X_VERSION_10_3) || \
- (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
- /* Define constants only available on Mac OS X 10.3 or later */
- #define kMenuAttrDoNotUseUserCommandKeys (1 << 7)
-#endif
-
#define USE_TK_MDEF
//#define USE_ATSU
@@ -31,6 +25,12 @@
#include "tkMacOSXDebug.h"
#include <CoreFoundation/CFString.h>
+#if !defined(MAC_OS_X_VERSION_10_3) || \
+ (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
+ /* Define constants only available on Mac OS X 10.3 or later */
+ #define kMenuAttrDoNotUseUserCommandKeys (1 << 7)
+#endif
+
typedef struct MacMenu {
MenuRef menuHdl; /* The Menu Manager data structure. */
Rect menuRect; /* The rectangle as calculated in the