diff options
-rw-r--r-- | generic/tkWindow.c | 4 | ||||
-rw-r--r-- | win/tkWinTest.c | 2 |
2 files changed, 4 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 *); diff --git a/win/tkWinTest.c b/win/tkWinTest.c index 8f186be..693d1c3 100644 --- a/win/tkWinTest.c +++ b/win/tkWinTest.c @@ -17,6 +17,8 @@ #undef USE_TK_STUBS #define USE_TK_STUBS #include "tkWinInt.h" +#undef TCLBOOLWARNING +#define TCLBOOLWARNING(boolPtr) /* needed here because we compile with -Wc++-compat */ HWND tkWinCurrentDialog; |