summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenus.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2005-11-27 06:53:36 (GMT)
committerdas <das@noemail.net>2005-11-27 06:53:36 (GMT)
commitd6c6efbf0b63914f4c35c1f3a65da7a09b99f4de (patch)
tree91e6eb3b7eef01eecf0add4e9b6ef6e90d52983b /macosx/tkMacOSXMenus.c
parent28f4a7abaa5cd934b5785d8f7c1c9ca017e00ad6 (diff)
downloadtk-d6c6efbf0b63914f4c35c1f3a65da7a09b99f4de.zip
tk-d6c6efbf0b63914f4c35c1f3a65da7a09b99f4de.tar.gz
tk-d6c6efbf0b63914f4c35c1f3a65da7a09b99f4de.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 FossilOrigin-Name: d6a1724cc3ff66b1ef4113b1b8bce40e126849b6
Diffstat (limited to 'macosx/tkMacOSXMenus.c')
-rw-r--r--macosx/tkMacOSXMenus.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMenus.c b/macosx/tkMacOSXMenus.c
index 1531d2b..c214105 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.2.2.5 2005/11/27 02:36:46 das Exp $
+ * RCS: @(#) $Id: tkMacOSXMenus.c,v 1.2.2.6 2005/11/27 06:53:36 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