mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 02:32:44 +03:00
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_
|
#ifndef _NETSURF_UTILS_STRING_H_
|
||||||
#define _NETSURF_UTILS_STRING_H_
|
#define _NETSURF_UTILS_STRING_H_
|
||||||
|
|
||||||
#if defined(__HAIKU__) || defined(__BEOS__)
|
|
||||||
#include <stdbool.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
@ -94,6 +94,7 @@ struct dirent;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__HAIKU__) || defined(__BEOS__)
|
#if defined(__HAIKU__) || defined(__BEOS__)
|
||||||
|
#include <stdlib.h>
|
||||||
#define strtof(s,p) ((float)(strtod((s),(p))))
|
#define strtof(s,p) ((float)(strtod((s),(p))))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user