From 2fdf10c98581abf0f60b4bef96157f6e58ba83f7 Mon Sep 17 00:00:00 2001 From: François Revel Date: Wed, 13 Aug 2008 17:37:59 +0000 Subject: BeOS doesn't have strtof and PRIxPTR. svn path=/trunk/netsurf/; revision=5101 --- utils/utils.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils/utils.h') diff --git a/utils/utils.h b/utils/utils.h index cf66aedca..fc4479d8e 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -39,6 +39,13 @@ #ifndef max #define max(x,y) (((x)>(y))?(x):(y)) #endif +#ifndef PRIxPTR +#define PRIxPTR "x" +#endif + +#if defined(__HAIKU__) || defined(__BEOS__) +#define strtof(s,p) ((float)(strtod((s),(p)))) +#endif /** * Calculate length of constant C string. -- cgit v1.2.3