summaryrefslogtreecommitdiff
path: root/include/libHX/defs.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-01-29 16:17:51 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-01-29 16:17:51 +0100
commitbfef0924f58eab930bdd826ac0132786abc32220 (patch)
treec37bbc77063f3477236ce4cb7d765794f2018555 /include/libHX/defs.h
parent8132c809273676b684f426ae8c0f8b1e6f40166e (diff)
New upstream version 4.10upstream/4.10
Diffstat (limited to 'include/libHX/defs.h')
-rw-r--r--include/libHX/defs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libHX/defs.h b/include/libHX/defs.h
index 49ca7d1..9d17019 100644
--- a/include/libHX/defs.h
+++ b/include/libHX/defs.h
@@ -213,15 +213,15 @@ static __inline__ new_type signed_cast(unsigned char *expr)
# define container_of(v, s, m) containerof((v), s, m)
#endif
-#ifdef _WIN32
+#if !defined(_WIN32) || (defined(__USE_MINGW_ANSI_STDIO) && __USE_MINGW_ANSI_STDIO + 0 > 0)
/*
* Sufficiently old versions of the VC runtime do not even support %ll.
*/
-# define HX_LONGLONG_FMT "I64"
-# define HX_SIZET_FMT "I"
-#else
# define HX_LONGLONG_FMT "ll"
# define HX_SIZET_FMT "z"
+#else
+# define HX_LONGLONG_FMT "I64"
+# define HX_SIZET_FMT "I"
#endif
#endif /* _LIBHX_DEFS_H */