diff options
Diffstat (limited to 'include/netsurf/inttypes.h')
-rw-r--r-- | include/netsurf/inttypes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/netsurf/inttypes.h b/include/netsurf/inttypes.h index 874d83f3d..e2229085a 100644 --- a/include/netsurf/inttypes.h +++ b/include/netsurf/inttypes.h @@ -34,6 +34,10 @@ #define PRId64 "lld" #endif +#ifndef PRIu64 +#define PRIu64 "llu" +#endif + /* Windows does not have sizet formating codes */ #if defined(_WIN32) @@ -48,8 +52,13 @@ /** c99 standard printf formatting for size_t type */ #define PRIsizet "zu" +#if defined(__riscos__) +/** riscos/unixlib defines ssize_t as a long int */ +#define PRIssizet "ld" +#else /** c99 standard printf formatting for ssize_t type */ #define PRIssizet "zd" +#endif #endif |