for strtof to be redefined on haiku stdlib must be included beforehand
This commit is contained in:
parent
04841668f0
commit
a828150d9c
|
@ -24,10 +24,6 @@
|
|||
#ifndef _NETSURF_UTILS_STRING_H_
|
||||
#define _NETSURF_UTILS_STRING_H_
|
||||
|
||||
#if defined(__HAIKU__) || defined(__BEOS__)
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ struct dirent;
|
|||
#endif
|
||||
|
||||
#if defined(__HAIKU__) || defined(__BEOS__)
|
||||
#include <stdlib.h>
|
||||
#define strtof(s,p) ((float)(strtod((s),(p))))
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue