diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-27 10:52:02 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-27 12:41:30 +0900 |
commit | 04be8e84db1cf4f8b2a7bc7679eda4336da75d43 (patch) | |
tree | c7914614f4a5cf91109f7893b87ff9e5d143ad0e /configure.ac | |
parent | 37114673623c4d2b1d9f2c2ddfffba070b2d96e6 (diff) |
Use C99-defined macros to classify a floating-point number
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4783
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 341d535235..900967492d 100644 --- a/configure.ac +++ b/configure.ac @@ -799,7 +799,7 @@ AS_IF([test "$GCC" = yes], [ ]) ], [cygwin*|msys*|darwin*|netbsd*], [ - # need lgamma_r(), finite() + # need lgamma_r() ]) # ANSI (no XCFLAGS because this is C only) @@ -1906,9 +1906,7 @@ AC_REPLACE_FUNCS(strlcpy) AC_REPLACE_FUNCS(strstr) AC_REPLACE_FUNCS(tgamma) -RUBY_REPLACE_FUNC([finite], [@%:@include <math.h>]) -RUBY_REPLACE_FUNC([isinf], [@%:@include <math.h>]) -RUBY_REPLACE_FUNC([isnan], [@%:@include <math.h>]) +AC_DEFINE(HAVE_ISFINITE) # C99; backward compatibility # for missing/setproctitle.c AS_CASE(["$target_os"], |