summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordas <das>2005-11-27 06:53:13 (GMT)
committerdas <das>2005-11-27 06:53:13 (GMT)
commit9ef93b992478a4db9d37fc282faa55bd2e9c960a (patch)
tree60096781edfdbd6e8aa6133d16cf1510addaaf31 /macosx
parent69519e0706dfa41d33c3656bb35aef77a3bd144f (diff)
downloadtk-9ef93b992478a4db9d37fc282faa55bd2e9c960a.zip
tk-9ef93b992478a4db9d37fc282faa55bd2e9c960a.tar.gz
tk-9ef93b992478a4db9d37fc282faa55bd2e9c960a.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')
-rw-r--r--macosx/tkMacOSXMenu.c14
-rw-r--r--macosx/tkMacOSXMenus.c8
2 files changed, 14 insertions, 8 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index c3b5ce1..4f849bc 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.23 2005/11/27 06:47:25 das Exp $
+ * RCS: @(#) $Id: tkMacOSXMenu.c,v 1.24 2005/11/27 06:53:13 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
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