summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenu.c
diff options
context:
space:
mode:
authordas <das>2005-11-27 06:37:58 (GMT)
committerdas <das>2005-11-27 06:37:58 (GMT)
commit0ce8c1959092aba23cb773f60aa45aca3e9b08d4 (patch)
treef807098ecf0b332836f0f2cfb0e4463cd7d11443 /macosx/tkMacOSXMenu.c
parentc24fadd0a7189f8ceb6649bc9ed5ef2a77fef4e1 (diff)
downloadtk-0ce8c1959092aba23cb773f60aa45aca3e9b08d4.zip
tk-0ce8c1959092aba23cb773f60aa45aca3e9b08d4.tar.gz
tk-0ce8c1959092aba23cb773f60aa45aca3e9b08d4.tar.bz2
* macosx/tkMacOSXMenu.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.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 022bd86..f2f9988 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.11 2005/11/27 02:36:46 das Exp $
+ * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.6.2.12 2005/11/27 06:37:58 das Exp $
*/
#include "tkMacOSXInt.h"
#include "tkMenubutton.h"
@@ -18,6 +18,12 @@
#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