diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2010-08-02 21:44:35 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2010-08-02 21:44:35 +0000 |
commit | d4ea23abab224c37274103cc93d42591e011abe7 (patch) | |
tree | d27936d1d0a6a5b4cae85967fac0d15e14d3864f | |
parent | 294a55ad4d80fce05000af8edf94588c25762648 (diff) | |
download | netsurf-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
-rw-r--r-- | utils/utils.h | 4 |
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)))) |