diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-02 16:24:11 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-02 16:24:11 +0000 |
commit | 104e841390f81471841387fff1c30f8cec8924e4 (patch) | |
tree | e8c566c56237f760b102524466219b1ac48159d1 | |
parent | ac6fd9384d05d20d2acbda789e06335468589c6d (diff) | |
download | bundler-104e841390f81471841387fff1c30f8cec8924e4.tar.gz |
* sprintf.c: include ieeefp.h to refer isinf.
* ext/bigdecimal/bigdecimal.c: ditto.
* ext/json/ext/generator/generator.c: ditto.
* rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 4 | ||||
-rw-r--r-- | ext/json/ext/generator/generator.c | 4 | ||||
-rw-r--r-- | rational.c | 4 | ||||
-rw-r--r-- | sprintf.c | 4 |
5 files changed, 26 insertions, 0 deletions
@@ -1,3 +1,13 @@ +Thu Jul 3 01:23:13 2008 Yusuke Endoh <mame@tsg.ne.jp> + + * sprintf.c: include ieeefp.h to refer isinf. + + * ext/bigdecimal/bigdecimal.c: ditto. + + * ext/json/ext/generator/generator.c: ditto. + + * rational.c: ditto. + Thu Jul 3 01:01:57 2008 Yusuke Endoh <mame@tsg.ne.jp> * missing/tgamma.c (tgamma): remove unused variable. diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 6e33243ec8..013293365c 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -22,6 +22,10 @@ #include <float.h> #include <math.h> #include "math.h" + +#ifdef HAVE_IEEEFP_H +#include <ieeefp.h> +#endif /* #define ENABLE_NUMERIC_STRING */ diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c index 97b06e983f..b8a1ea16d1 100644 --- a/ext/json/ext/generator/generator.c +++ b/ext/json/ext/generator/generator.c @@ -6,6 +6,10 @@ #include <string.h> #include <math.h> +#ifdef HAVE_IEEEFP_H +#include <ieeefp.h> +#endif + #define check_max_nesting(state, depth) do { \ long current_nesting = 1 + depth; \ if (state->max_nesting != 0 && current_nesting > state->max_nesting) \ diff --git a/rational.c b/rational.c index c81b89a4a7..48ed7eae17 100644 --- a/rational.c +++ b/rational.c @@ -12,6 +12,10 @@ #define NDEBUG #include <assert.h> +#ifdef HAVE_IEEEFP_H +#include <ieeefp.h> +#endif + #ifndef RATIONAL_NAME #define RATIONAL_NAME "Rational" #endif @@ -17,6 +17,10 @@ #include <math.h> #include <stdarg.h> +#ifdef HAVE_IEEEFP_H +#include <ieeefp.h> +#endif + #define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */ #define BITSPERDIG (SIZEOF_BDIGITS*CHAR_BIT) #define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n))) |