summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-21 23:56:16 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-21 23:56:16 +0100
commita828150d9c1c481cc227656e83d6e34e592e31ce (patch)
tree58737d806a1975c21255c5c54935de661b765b1e /utils
parent04841668f0f467740de03ae482a9d9ba87c6fce8 (diff)
downloadnetsurf-a828150d9c1c481cc227656e83d6e34e592e31ce.tar.gz
netsurf-a828150d9c1c481cc227656e83d6e34e592e31ce.tar.bz2
for strtof to be redefined on haiku stdlib must be included beforehand
Diffstat (limited to 'utils')
-rw-r--r--utils/string.h4
-rw-r--r--utils/utils.h1
2 files changed, 1 insertions, 4 deletions
diff --git a/utils/string.h b/utils/string.h
index 38f564494..03d891700 100644
--- a/utils/string.h
+++ b/utils/string.h
@@ -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>
diff --git a/utils/utils.h b/utils/utils.h
index d4bad9d0c..d87c9a0db 100644
--- a/utils/utils.h
+++ b/utils/utils.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