diff options
author | das <das> | 2005-11-27 06:53:13 (GMT) |
---|---|---|
committer | das <das> | 2005-11-27 06:53:13 (GMT) |
commit | 16d3b703ac6f230b266d41176c63fc2a71af143d (patch) | |
tree | 60096781edfdbd6e8aa6133d16cf1510addaaf31 /macosx/tkMacOSXMenus.c | |
parent | f432e8f42b0a18b776ca2844adf85b835e9276f1 (diff) | |
download | tk-16d3b703ac6f230b266d41176c63fc2a71af143d.zip tk-16d3b703ac6f230b266d41176c63fc2a71af143d.tar.gz tk-16d3b703ac6f230b266d41176c63fc2a71af143d.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/tkMacOSXMenus.c')
-rw-r--r-- | macosx/tkMacOSXMenus.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMenus.c b/macosx/tkMacOSXMenus.c index 10695d1..6f8c2c3 100644 --- a/macosx/tkMacOSXMenus.c +++ b/macosx/tkMacOSXMenus.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXMenus.c,v 1.8 2005/11/27 02:36:15 das Exp $ + * RCS: @(#) $Id: tkMacOSXMenus.c,v 1.9 2005/11/27 06:53:13 das Exp $ */ #include "tk.h" @@ -24,6 +24,12 @@ #undef Status #include <Carbon/Carbon.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 + #define kAppleMenu 256 #define kAppleAboutItem 1 #define kFileMenu 2 |