diff options
-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))) |