diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2008-08-13 17:37:59 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2008-08-13 17:37:59 +0000 |
commit | 2fdf10c98581abf0f60b4bef96157f6e58ba83f7 (patch) | |
tree | 22742f3343354c0c500580f5c31ec9f57bd1d98d | |
parent | 1999e455fa0c40f1e1ba576948f2147015bab28c (diff) | |
download | netsurf-2fdf10c98581abf0f60b4bef96157f6e58ba83f7.tar.gz netsurf-2fdf10c98581abf0f60b4bef96157f6e58ba83f7.tar.bz2 |
BeOS doesn't have strtof and PRIxPTR.
svn path=/trunk/netsurf/; revision=5101
-rw-r--r-- | utils/utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
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. |