summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2008-04-06 00:37:19 (GMT)
committerKevin B Kenny <kennykb@acm.org>2008-04-06 00:37:19 (GMT)
commitd4d4d0027f1947f9ad87ec563837df22d21e55b2 (patch)
treed55d96be8fa197b0d3eabb734ea26080a1d6639c /win
parentc9575348e3505e56d93e7d7f7d64d65272af9c5d (diff)
downloadtcl-d4d4d0027f1947f9ad87ec563837df22d21e55b2.zip
tcl-d4d4d0027f1947f9ad87ec563837df22d21e55b2.tar.gz
tcl-d4d4d0027f1947f9ad87ec563837df22d21e55b2.tar.bz2
* tests/chanio.test (chan-io-53.9):
* tests/io.test (io-53.9): Made test cleanup robust against the possibility of slow process shutdown on Windows. * win/tcl.m4: Added -D_CRT_SECURE_NO_DEPRECATE and -DCRT_NONSTDC_NO_DEPRECATE to the MSVC compilation flags so that the compilation doesn't barf on perfectly reasonable Posix system calls. * win/configure: Manually patched (don't have the right autoconf to hand).
Diffstat (limited to 'win')
-rwxr-xr-xwin/configure3
-rw-r--r--win/tcl.m45
2 files changed, 7 insertions, 1 deletions
diff --git a/win/configure b/win/configure
index e10d319..e69a398 100755
--- a/win/configure
+++ b/win/configure
@@ -4122,6 +4122,9 @@ _ACEOF
MAKE_EXE="\${CC} -Fe\$@"
LIBPREFIX=""
+ CFLAGS_DEBUG="${CFLAGS_DEBUG} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
+ CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
+
EXTRA_CFLAGS=""
CFLAGS_WARNING="-W3"
LDFLAGS_DEBUG="-debug:full"
diff --git a/win/tcl.m4 b/win/tcl.m4
index 59b51c9..1a46527 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -622,7 +622,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
CC="\"${PATH64}/cl.exe\" -I\"${MSSDK}/Include\" \
-I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
RC="\"${MSSDK}/bin/rc.exe\""
- CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}d"
+ CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}"
# Do not use -O2 for Win64 - this has proved buggy in code gen.
CFLAGS_OPTIMIZE="-nologo -O1 ${runtime}"
lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
@@ -747,6 +747,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
MAKE_EXE="\${CC} -Fe\[$]@"
LIBPREFIX=""
+ CFLAGS_DEBUG="${CFLAGS_DEBUG} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
+ CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
+
EXTRA_CFLAGS=""
CFLAGS_WARNING="-W3"
LDFLAGS_DEBUG="-debug:full"