for strtof to be redefined on haiku stdlib must be included beforehand

This commit is contained in:
Vincent Sanders 2016-04-21 23:56:16 +01:00
parent 04841668f0
commit a828150d9c
2 changed files with 1 additions and 4 deletions

View File

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

View File

@ -94,6 +94,7 @@ struct dirent;
#endif
#if defined(__HAIKU__) || defined(__BEOS__)
#include <stdlib.h>
#define strtof(s,p) ((float)(strtod((s),(p))))
#endif