diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-26 09:49:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-01-26 09:49:18 (GMT) |
commit | c0ec06f68f35d711a63ff3e21bd5b3d79e295db6 (patch) | |
tree | 025ff12dfcb1d15ac90a98c08043c8c4a5e7a18a /generic/tkMain.c | |
parent | 7f5ad2fd37ebc15a54f51eb0285fe2c686152fff (diff) | |
download | tk-c0ec06f68f35d711a63ff3e21bd5b3d79e295db6.zip tk-c0ec06f68f35d711a63ff3e21bd5b3d79e295db6.tar.gz tk-c0ec06f68f35d711a63ff3e21bd5b3d79e295db6.tar.bz2 |
Fix [0e1b64074]: Build error on Windows 10/VS 2019
Diffstat (limited to 'generic/tkMain.c')
-rw-r--r-- | generic/tkMain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c index 49fa3f6..41afc06 100644 --- a/generic/tkMain.c +++ b/generic/tkMain.c @@ -100,7 +100,7 @@ static int WinIsTty(int fd) { */ #if !defined(STATIC_BUILD) - if (tclStubsPtr->reserved9 && tclIntPlatStubsPtr->tclpIsAtty) { + if (tclStubsPtr->tcl_CreateFileHandler && tclIntPlatStubsPtr->tclpIsAtty) { /* We are running on Cygwin */ return tclIntPlatStubsPtr->tclpIsAtty(fd); } @@ -189,7 +189,7 @@ Tk_MainEx( #if defined(_WIN32) && !defined(UNICODE) && !defined(STATIC_BUILD) - if (tclStubsPtr->reserved9) { + if (tclStubsPtr->tcl_CreateFileHandler) { /* We are running win32 Tk under Cygwin, so let's check * whether the env("DISPLAY") variable or the -display * argument is set. If so, we really want to run the @@ -221,7 +221,7 @@ Tk_MainEx( #if defined(_WIN32) #if !defined(STATIC_BUILD) /* If compiled for Win32 but running on Cygwin, don't use console */ - if (!tclStubsPtr->reserved9) + if (!tclStubsPtr->tcl_CreateFileHandler) #endif Tk_InitConsoleChannels(interp); #endif |