summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-01-23 18:55:15 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-01-23 18:55:15 (GMT)
commit567e654b82f4cd34d86fa80a81c35250bc1392d9 (patch)
treee915f09ad7c6ff4a2b806ca1dc9160e3d46b7782 /macosx
parentbbcec99c56690c05359f41e55c6dd7f3461c9aee (diff)
downloadtk-567e654b82f4cd34d86fa80a81c35250bc1392d9.zip
tk-567e654b82f4cd34d86fa80a81c35250bc1392d9.tar.gz
tk-567e654b82f4cd34d86fa80a81c35250bc1392d9.tar.bz2
Repair failure to compile on OSX/Cocoa.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXDialog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 67f17be..0f7ef3a 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -395,10 +395,12 @@ Tk_GetOpenFileObjCmd(
NSMutableArray *fileTypes = nil;
NSOpenPanel *panel = [NSOpenPanel openPanel];
NSInteger modalReturnCode = modalError;
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
+ BOOL parentIsKey = NO;
+#endif
TkInitFileFilters(&fl);
for (i = 1; i < objc; i += 2) {
- BOOL parentIsKey = NO;
if (Tcl_GetIndexFromObjStruct(interp, objv[i], openOptionStrings,
sizeof(char *), "option", TCL_EXACT, &index) != TCL_OK) {
goto end;
@@ -598,10 +600,11 @@ Tk_GetSaveFileObjCmd(
NSMutableArray *fileTypes = nil;
NSSavePanel *panel = [NSSavePanel savePanel];
NSInteger modalReturnCode = modalError;
+ BOOL parentIsKey = NO;
TkInitFileFilters(&fl);
for (i = 1; i < objc; i += 2) {
- BOOL parentIsKey = NO;
+ parentIsKey = NO;
if (Tcl_GetIndexFromObjStruct(interp, objv[i], saveOptionStrings,
sizeof(char *), "option", TCL_EXACT, &index) != TCL_OK) {
goto end;