summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-10-21 15:01:13 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-10-21 15:01:13 (GMT)
commit48becc71dabdff1fee50892a3f25600dd7e7cc08 (patch)
treec6d8f088a93d35ac3c8db05b3d7108c91d254f7b
parentf816a295660ff8361547085e68cd7de4bba5e81a (diff)
downloadtk-48becc71dabdff1fee50892a3f25600dd7e7cc08.zip
tk-48becc71dabdff1fee50892a3f25600dd7e7cc08.tar.gz
tk-48becc71dabdff1fee50892a3f25600dd7e7cc08.tar.bz2
Fix for Mac crash on Yosemite because of changes in version checking
-rw-r--r--macosx/tkMacOSXInit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
index 1f70149..aaeb348 100644
--- a/macosx/tkMacOSXInit.c
+++ b/macosx/tkMacOSXInit.c
@@ -236,11 +236,16 @@ TkpInit(
if (!uname(&name)) {
tkMacOSXMacOSXVersion = (strtod(name.release, NULL) + 96) * 10;
}
- if (tkMacOSXMacOSXVersion &&
+ /*Check for new versioning scheme on Yosemite (10.10) and later.*/
+ if (MAC_OS_X_VERSION_MIN_REQUIRED > 100000) {
+ tkMacOSXMacOSXVersion = MAC_OS_X_VERSION_MIN_REQUIRED/100;
+ }
+ if (tkMacOSXMacOSXVersion && MAC_OS_X_VERSION_MIN_REQUIRED < 100000 &&
tkMacOSXMacOSXVersion/10 < MAC_OS_X_VERSION_MIN_REQUIRED/10) {
Tcl_Panic("Mac OS X 10.%d or later required !",
(MAC_OS_X_VERSION_MIN_REQUIRED/10)-100);
}
+
#ifdef TK_FRAMEWORK
/*