summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-10 09:54:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-11-10 09:54:42 (GMT)
commit7e8566a02f05d46b53d404cfc683b69c43d2f6b3 (patch)
tree308274ad15d92391a3592b101e13ea184cecfa9f
parentef824045bfea5623a926d2cc1046fc2e633cff66 (diff)
downloadtcl-7e8566a02f05d46b53d404cfc683b69c43d2f6b3.zip
tcl-7e8566a02f05d46b53d404cfc683b69c43d2f6b3.tar.gz
tcl-7e8566a02f05d46b53d404cfc683b69c43d2f6b3.tar.bz2
Fix Windows build with --disable-shared: Make sure that test-code is never compiled with -DBUILD_tcl -DSTATIC_BUILD
-rw-r--r--generic/tclTest.c1
-rw-r--r--generic/tclTestABSList.c2
-rw-r--r--generic/tclTestObj.c1
-rw-r--r--generic/tclTestProcBodyObj.c2
-rw-r--r--generic/tclThreadTest.c2
-rw-r--r--unix/tclUnixTest.c2
-rw-r--r--win/tclWinTest.c2
7 files changed, 12 insertions, 0 deletions
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