summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 07:38:01 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 07:38:01 +0000
commit8591335ba6556d788999ac29f1efbdbe0cb3554a (patch)
tree1c826e3b51db0f7ce37d272b9591fbc24946f464 /src/helper
parent5a6f218a9c6848462251b0b8014f20e9c9d5e9f0 (diff)
downloadopenocd+libswd-8591335ba6556d788999ac29f1efbdbe0cb3554a.tar.gz
openocd+libswd-8591335ba6556d788999ac29f1efbdbe0cb3554a.tar.bz2
openocd+libswd-8591335ba6556d788999ac29f1efbdbe0cb3554a.tar.xz
openocd+libswd-8591335ba6556d788999ac29f1efbdbe0cb3554a.zip
update w/missing eCos definitions after latest round of compiler formatting warnings fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2356 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/types.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/helper/types.h b/src/helper/types.h
index b32850cc..a5c2624a 100644
--- a/src/helper/types.h
+++ b/src/helper/types.h
@@ -124,8 +124,18 @@ static inline void h_u16_to_be(uint8_t* buf, int val)
}
#ifdef __ECOS
+/* eCos plain lacks these definition... A series of upstream patches
+ * could probably repair it, but it seems like too much work to be
+ * worth it.
+ */
+
+
+#define PRIx32 "x"
+#define PRId32 "d"
+#define SCNx32 "x"
+#define PRIi32 "i"
+#define PRIu32 "u"
-/* eCos plain lacks this definition... */
typedef CYG_ADDRWORD intptr_t;
typedef int64_t intmax_t;
typedef uint64_t uintmax_t;