summaryrefslogtreecommitdiffstats
path: root/win/tclWinInt.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinInt.h')
-rw-r--r--win/tclWinInt.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/win/tclWinInt.h b/win/tclWinInt.h
index 5f532bc..ac95da5 100644
--- a/win/tclWinInt.h
+++ b/win/tclWinInt.h
@@ -53,11 +53,18 @@ MODULE_SCOPE TclWinProcs tclWinProcs;
#define VER_PLATFORM_WIN32_CE 3
#endif
-#ifdef _WIN64
-# define TCL_I_MODIFIER "I"
-#else
-# define TCL_I_MODIFIER ""
+#ifndef TCL_Z_MODIFIER
+# ifdef _WIN64
+# if defined(__USE_MINGW_ANSI_STDIO) && __USE_MINGW_ANSI_STDIO
+# define TCL_Z_MODIFIER "ll"
+# else
+# define TCL_Z_MODIFIER "I"
+# endif
+# else
+# define TCL_Z_MODIFIER ""
+# endif
#endif
+#define TCL_I_MODIFIER TCL_Z_MODIFIER
/*
* Declarations of functions that are not accessible by way of the