mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-25 10:54:34 +03:00
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:
parent
294a55ad4d
commit
d4ea23abab
@ -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))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user