summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-02 16:24:11 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-02 16:24:11 +0000
commit104e841390f81471841387fff1c30f8cec8924e4 (patch)
treee8c566c56237f760b102524466219b1ac48159d1 /sprintf.c
parentac6fd9384d05d20d2acbda789e06335468589c6d (diff)
* 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
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sprintf.c b/sprintf.c
index e5ac2a4..36d06c4 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -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)))