diff options
-rw-r--r-- | auto.def | 2 | ||||
-rw-r--r-- | jimiocompat.h | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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 |