From 7e8566a02f05d46b53d404cfc683b69c43d2f6b3 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 10 Nov 2023 09:54:42 +0000 Subject: Fix Windows build with --disable-shared: Make sure that test-code is never compiled with -DBUILD_tcl -DSTATIC_BUILD --- generic/tclTest.c | 1 + generic/tclTestABSList.c | 2 ++ generic/tclTestObj.c | 1 + generic/tclTestProcBodyObj.c | 2 ++ generic/tclThreadTest.c | 2 ++ unix/tclUnixTest.c | 2 ++ win/tclWinTest.c | 2 ++ 7 files changed, 12 insertions(+) diff --git a/generic/tclTest.c b/generic/tclTest.c index fc0213e..293d887 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -15,6 +15,7 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#undef BUILD_tcl #undef STATIC_BUILD #ifndef USE_TCL_STUBS # define USE_TCL_STUBS diff --git a/generic/tclTestABSList.c b/generic/tclTestABSList.c index 227d1b6..1278a93 100644 --- a/generic/tclTestABSList.c +++ b/generic/tclTestABSList.c @@ -1,5 +1,7 @@ // Tcl Abstract List test command: "lstring" +#undef BUILD_tcl +#undef STATIC_BUILD #ifndef USE_TCL_STUBS # define USE_TCL_STUBS #endif diff --git a/generic/tclTestObj.c b/generic/tclTestObj.c index 1661d55..e1836ec 100644 --- a/generic/tclTestObj.c +++ b/generic/tclTestObj.c @@ -14,6 +14,7 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#undef BUILD_tcl #ifndef USE_TCL_STUBS # define USE_TCL_STUBS #endif diff --git a/generic/tclTestProcBodyObj.c b/generic/tclTestProcBodyObj.c index a86499e..7342af7 100644 --- a/generic/tclTestProcBodyObj.c +++ b/generic/tclTestProcBodyObj.c @@ -11,6 +11,8 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#undef BUILD_tcl +#undef STATIC_BUILD #ifndef USE_TCL_STUBS # define USE_TCL_STUBS #endif diff --git a/generic/tclThreadTest.c b/generic/tclThreadTest.c index f0db075..b10465d 100644 --- a/generic/tclThreadTest.c +++ b/generic/tclThreadTest.c @@ -13,6 +13,8 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#undef BUILD_tcl +#undef STATIC_BUILD #ifndef USE_TCL_STUBS # define USE_TCL_STUBS #endif diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c index 2c20251..133cdf6 100644 --- a/unix/tclUnixTest.c +++ b/unix/tclUnixTest.c @@ -10,6 +10,8 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#undef BUILD_tcl +#undef STATIC_BUILD #ifndef USE_TCL_STUBS # define USE_TCL_STUBS #endif diff --git a/win/tclWinTest.c b/win/tclWinTest.c index 9a4c082..1b679a9 100644 --- a/win/tclWinTest.c +++ b/win/tclWinTest.c @@ -9,6 +9,8 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ +#undef BUILD_tcl +#undef STATIC_BUILD #ifndef USE_TCL_STUBS # define USE_TCL_STUBS #endif -- cgit v0.12