BeOS doesn't have strtof and PRIxPTR.

svn path=/trunk/netsurf/; revision=5101
This commit is contained in:
François Revel 2008-08-13 17:37:59 +00:00
parent 1999e455fa
commit 2fdf10c985
1 changed files with 7 additions and 0 deletions

View File

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