Skip to content

Commit

Permalink
Fix --disable-shared build on Windows. Eliminate warning in tkWinTest.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Apr 30, 2024
2 parents b62a80a + 682a202 commit a05abd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generic/tkWindow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);

Expand Down Expand Up @@ -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 *);

Expand Down
2 changes: 2 additions & 0 deletions win/tkWinTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a05abd1

Please sign in to comment.