summaryrefslogtreecommitdiff
path: root/src/target/arm11.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-04 07:13:08 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-04 07:13:08 +0000
commitea306d3e59626d387aac7b54032ecf45d2e9c5e7 (patch)
treeafc6721deaad64a507ad8c8c01ea6718353acae3 /src/target/arm11.h
parent58cccae6396b9279852c4eb06bc04b690561e3bb (diff)
downloadopenocd_libswd-ea306d3e59626d387aac7b54032ecf45d2e9c5e7.tar.gz
openocd_libswd-ea306d3e59626d387aac7b54032ecf45d2e9c5e7.tar.bz2
openocd_libswd-ea306d3e59626d387aac7b54032ecf45d2e9c5e7.tar.xz
openocd_libswd-ea306d3e59626d387aac7b54032ecf45d2e9c5e7.zip
Michael Bruck: fix warnings.
git-svn-id: svn://svn.berlios.de/openocd/trunk@440 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm11.h')
-rw-r--r--src/target/arm11.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/target/arm11.h b/src/target/arm11.h
index 638c2ca9..c2607a6d 100644
--- a/src/target/arm11.h
+++ b/src/target/arm11.h
@@ -33,6 +33,18 @@
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.
+*/
+
+#if __GNUC__ > 3
+#define ZU "%zu"
+#else
+#define ZU "%u"
+#endif
+
+
#define ARM11_REGCACHE_MODEREGS 0
#define ARM11_REGCACHE_FREGS 0