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 | cadfbc3393bc5f0b183367e9c7c914a4dc054eb9 (patch) | |
| tree | e8c566c56237f760b102524466219b1ac48159d1 /sprintf.c | |
| parent | 5af6a467526029cb4eab756fe38d0d3340d1adba (diff) | |
| download | ruby-cadfbc3393bc5f0b183367e9c7c914a4dc054eb9.tar.gz ruby-cadfbc3393bc5f0b183367e9c7c914a4dc054eb9.tar.xz ruby-cadfbc3393bc5f0b183367e9c7c914a4dc054eb9.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@17824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
| -rw-r--r-- | sprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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))) |
