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
This commit is contained in:
François Revel 2010-08-02 21:44:35 +00:00
parent 294a55ad4d
commit d4ea23abab
1 changed files with 4 additions and 0 deletions

View File

@ -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))))