From 5a6dc5a325756132ce20be598c278022c7b1c185 Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 4 Mar 2008 08:40:33 +0000 Subject: [PATCH 1/1] Michael Bruck - fix warnings. git-svn-id: svn://svn.berlios.de/openocd/trunk@441 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/arm11.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/target/arm11.h b/src/target/arm11.h index c2607a6d6f..818db766a3 100644 --- a/src/target/arm11.h +++ b/src/target/arm11.h @@ -33,15 +33,12 @@ type * variable = calloc(1, sizeof(type) * items) -/* Don't know exactly when %zu was added to glibc (CVS says in 1998). - Assume for now that its between GCC versions 3.x.x and 4.x.x . - MinGW's GCC 3.4.5 comes with a glibc that doesn't support it. -*/ +/* For MinGW use 'I' prefix to print size_t (instead of 'z') */ -#if __GNUC__ > 3 +#ifndef __MSVCRT__ #define ZU "%zu" #else -#define ZU "%u" +#define ZU "%Iu" #endif -- 2.30.2