summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-30 09:57:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-30 09:57:37 (GMT)
commita05abd162d6d3eda86cb3842832225cc89f76864 (patch)
treeae7a8e880f13d5a50e59861fdd2d709489b6e9a3 /generic/tkWindow.c
parentb62a80af2e19518b7cdaf13d290bf68f45800ef8 (diff)
parent682a2025a8557d37fdc00b7644af58ccb725543c (diff)
downloadtk-a05abd162d6d3eda86cb3842832225cc89f76864.zip
tk-a05abd162d6d3eda86cb3842832225cc89f76864.tar.gz
tk-a05abd162d6d3eda86cb3842832225cc89f76864.tar.bz2
Fix --disable-shared build on Windows. Eliminate warning in tkWinTest.c
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r--generic/tkWindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index 8c9d556..a93fed4 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -3018,7 +3018,7 @@ int
Tk_Init(
Tcl_Interp *interp) /* Interpreter to initialize. */
{
-#if defined(_WIN32)
+#if defined(_WIN32) && !defined(STATIC_BUILD)
if (tkcygwindll) {
int (*tkinit)(Tcl_Interp *);
@@ -3091,7 +3091,7 @@ Tk_SafeInit(
* checked at several places to differentiate the two initialisations.
*/
-#if defined(_WIN32)
+#if defined(_WIN32) && !defined(STATIC_BUILD)
if (tkcygwindll) {
int (*tksafeinit)(Tcl_Interp *);