summaryrefslogtreecommitdiff
path: root/utils/utils.h
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2010-08-02 21:44:35 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2010-08-02 21:44:35 +0000
commitd4ea23abab224c37274103cc93d42591e011abe7 (patch)
treed27936d1d0a6a5b4cae85967fac0d15e14d3864f /utils/utils.h
parent294a55ad4d80fce05000af8edf94588c25762648 (diff)
downloadnetsurf-d4ea23abab224c37274103cc93d42591e011abe7.tar.gz
netsurf-d4ea23abab224c37274103cc93d42591e011abe7.tar.bz2
Add a fallback for PRId64 as it's not defined on BeOS. It's only valid for 32bit, but any 64bit platform should be recent enough to have them.
svn path=/trunk/netsurf/; revision=10674
Diffstat (limited to 'utils/utils.h')
-rw-r--r--utils/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/utils.h b/utils/utils.h
index 9959ffd8b..b33fde8c4 100644
--- a/utils/utils.h
+++ b/utils/utils.h
@@ -20,6 +20,7 @@
#ifndef _NETSURF_UTILS_UTILS_H_
#define _NETSURF_UTILS_UTILS_H_
+#include <inttypes.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
@@ -42,6 +43,9 @@
#ifndef PRIxPTR
#define PRIxPTR "x"
#endif
+#ifndef PRId64
+#define PRId64 "lld"
+#endif
#if defined(__HAIKU__) || defined(__BEOS__)
#define strtof(s,p) ((float)(strtod((s),(p))))