summaryrefslogtreecommitdiff
path: root/src/helper/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/types.h')
-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;