aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-04-14 10:28:54 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-09-09 16:32:30 +0900
commit6fa1efafb28e0a49b5732052f3fe778c80acad2c (patch)
treece4a9e77be6825199c285b1339899d836b93c557
parent1f250eaea359f7687812356217ed0e9e0f4e7484 (diff)
downloadruby-6fa1efafb28e0a49b5732052f3fe778c80acad2c.tar.gz
configure.in: assume float.h is always available
It is part of C89.
-rw-r--r--configure.in1
-rw-r--r--ext/date/date_core.c2
-rw-r--r--marshal.c2
-rw-r--r--numeric.c3
-rw-r--r--range.c2
-rw-r--r--template/limits.c.tmpl4
-rw-r--r--win32/Makefile.sub1
7 files changed, 1 insertions, 14 deletions
diff --git a/configure.in b/configure.in
index 4bbc639c2e..b5fed4c612 100644
--- a/configure.in
+++ b/configure.in
@@ -1386,7 +1386,6 @@ AC_CHECK_HEADERS(atomic.h)
AC_CHECK_HEADERS(direct.h)
AC_CHECK_HEADERS(grp.h)
AC_CHECK_HEADERS(fcntl.h)
-AC_CHECK_HEADERS(float.h)
AC_CHECK_HEADERS(ieeefp.h)
AC_CHECK_HEADERS(intrinsics.h)
AC_CHECK_HEADERS(langinfo.h)
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
index dce0bf99ec..6ac4ffa47e 100644
--- a/ext/date/date_core.c
+++ b/ext/date/date_core.c
@@ -218,9 +218,7 @@ f_negative_p(VALUE x)
(((m) << MON_SHIFT) | ((d) << MDAY_SHIFT))
#endif
-#ifdef HAVE_FLOAT_H
#include <float.h>
-#endif
#if defined(FLT_RADIX) && defined(FLT_MANT_DIG) && FLT_RADIX == 2 && FLT_MANT_DIG > 22
#define date_sg_t float
diff --git a/marshal.c b/marshal.c
index 7e16d0b024..a21373ed1c 100644
--- a/marshal.c
+++ b/marshal.c
@@ -21,9 +21,7 @@
#include "id_table.h"
#include <math.h>
-#ifdef HAVE_FLOAT_H
#include <float.h>
-#endif
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
diff --git a/numeric.c b/numeric.c
index 480ab7e0cb..037e486f7b 100644
--- a/numeric.c
+++ b/numeric.c
@@ -16,10 +16,7 @@
#include <ctype.h>
#include <math.h>
#include <stdio.h>
-
-#ifdef HAVE_FLOAT_H
#include <float.h>
-#endif
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
diff --git a/range.c b/range.c
index ba96e3de3f..06c9111277 100644
--- a/range.c
+++ b/range.c
@@ -12,9 +12,7 @@
#include "internal.h"
#include "id.h"
-#ifdef HAVE_FLOAT_H
#include <float.h>
-#endif
#include <math.h>
VALUE rb_cRange;
diff --git a/template/limits.c.tmpl b/template/limits.c.tmpl
index de35354829..05ff3f1c6c 100644
--- a/template/limits.c.tmpl
+++ b/template/limits.c.tmpl
@@ -47,9 +47,7 @@
#ifdef HAVE_INTTYPES_H
# include <stdint.h>
#endif
-#ifdef HAVE_FLOAT_H
-# include <float.h>
-#endif
+#include <float.h>
void
Init_limits(void)
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 8ea37a6615..4adca6bcbc 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -636,7 +636,6 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define HAVE_LIMITS_H 1
#define HAVE_FCNTL_H 1
#define HAVE_SYS_UTIME_H 1
-#define HAVE_FLOAT_H 1
#define HAVE_TIME_H 1
#define rb_pid_t int
#define rb_gid_t int