aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auto.def2
-rw-r--r--jimiocompat.h4
2 files changed, 4 insertions, 2 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
diff --git a/jimiocompat.h b/jimiocompat.h
index 5ac7576..1f0507e 100644
--- a/jimiocompat.h
+++ b/jimiocompat.h
@@ -65,8 +65,8 @@ int Jim_OpenForRead(const char *filename);
#define HAVE_PIPE
#define pipe(P) _pipe((P), 0, O_NOINHERIT)
- typedef struct _stat64 jim_stat_t;
- #define Jim_Stat __stat64
+ typedef struct __stat64 jim_stat_t;
+ #define Jim_Stat _stat64
#define Jim_FileStat _fstat64
#else