summaryrefslogtreecommitdiff
path: root/src/target/arm11.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/arm11.h')
-rw-r--r--src/target/arm11.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/arm11.h b/src/target/arm11.h
index 61c5f7f9..9afff23d 100644
--- a/src/target/arm11.h
+++ b/src/target/arm11.h
@@ -33,8 +33,9 @@
type * variable = calloc(1, sizeof(type) * items)
/* For MinGW use 'I' prefix to print size_t (instead of 'z') */
+/* Except if __USE_MINGW_ANSI_STDIO is defined with MinGW */
-#ifndef __MSVCRT__
+#if (!defined(__MSVCRT__) || defined(__USE_MINGW_ANSI_STDIO))
#define ZU "%zu"
#else
#define ZU "%Iu"