aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2022-04-20 12:57:18 +1000
committerSteve Bennett <steveb@workware.net.au>2022-04-22 23:16:37 +1000
commit601cb02abf1f371118e8c0179eafdc2548504f69 (patch)
tree62a35359ef9935eec32e03cd6b60f67eee9d5b64 /auto.def
parent81e1890c0f595c474cabcaa83f66882005336d93 (diff)
downloadjimtcl-601cb02abf1f371118e8c0179eafdc2548504f69.zip
jimtcl-601cb02abf1f371118e8c0179eafdc2548504f69.tar.gz
jimtcl-601cb02abf1f371118e8c0179eafdc2548504f69.tar.bz2
build: win32: Fix build with tdm-gcc10.3
Mostly we need to specifically target WinXP. Also silence deprecation warnings. And fix the confusion about _stat64 vs __stat64 Fixes #219 Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/auto.def b/auto.def
index 15811b1..7235bdd 100644
--- a/auto.def
+++ b/auto.def
@@ -285,6 +285,8 @@ switch -glob -- $host_os {
define TCL_PLATFORM_OS $host_os
define TCL_PLATFORM_PLATFORM windows
define TCL_PLATFORM_PATH_SEPARATOR {;}
+ # Target WinXP or later. Should this be configurable?
+ define-append CCOPTS -D_WIN32_WINNT=0x501 -Wno-deprecated-declarations
}
default {
# Note that cygwin is considered a unix platform