From 73349dc5ac33e904a1311829f2e42d923309e744 Mon Sep 17 00:00:00 2001 From: Redirect 'Slash' NIL Date: Sat, 17 Oct 2009 17:47:52 -0700 Subject: More MinGW C99 printf compliance Passing "--std=gun99" is unfortunately not sufficient to make current MinGW compilers conform with respect to checking printf format strings. (The C runtime seems not to have problems.) Fix by using a "gnu_printf" format specifier not "printf". --- src/target/arm11.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/target') 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" -- cgit v1.2.3