summaryrefslogtreecommitdiffhomepage
path: root/src/numeric.c
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-17 02:11:57 +0900
committerMasaki Muranaka <[email protected]>2013-03-17 02:31:40 +0900
commitfd69e271bb168bab7994437aab211bd08b2fef15 (patch)
tree9c46fd73fe5379bd93d50820607274d028867811 /src/numeric.c
parent526f4bf6400acdc69b214076946c65b09828f643 (diff)
downloadmruby-fd69e271bb168bab7994437aab211bd08b2fef15.tar.gz
mruby-fd69e271bb168bab7994437aab211bd08b2fef15.zip
Add float.h. It exists even if the environment was freestanding. It has been supported since C89.
Diffstat (limited to 'src/numeric.c')
-rw-r--r--src/numeric.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/numeric.c b/src/numeric.c
index 5560bbc7f..0bfd09b6e 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -9,6 +9,7 @@
#include "mruby/string.h"
#include "mruby/array.h"
+#include <float.h>
#include <math.h>
#include <assert.h>
#include <stdlib.h>
@@ -17,10 +18,6 @@
#include <floatingpoint.h>
#endif
-#ifdef HAVE_FLOAT_H
-#include <float.h>
-#endif
-
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif