diff options
author | Redirect 'Slash' NIL <redirect.slash.nil@gmail.com> | 2009-10-17 17:47:52 -0700 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-10-17 17:47:52 -0700 |
commit | 73349dc5ac33e904a1311829f2e42d923309e744 (patch) | |
tree | 1bbeb3fe886bd517aef654a7d62a7bca4b1e06de /src/target | |
parent | c9fbfbd95c04dcc7e0e56a678d0f5c2d6c673e2a (diff) | |
download | openocd_libswd-73349dc5ac33e904a1311829f2e42d923309e744.tar.gz openocd_libswd-73349dc5ac33e904a1311829f2e42d923309e744.tar.bz2 openocd_libswd-73349dc5ac33e904a1311829f2e42d923309e744.tar.xz openocd_libswd-73349dc5ac33e904a1311829f2e42d923309e744.zip |
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".
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm11.h | 3 |
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" |