diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-01 06:34:48 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-01-01 06:34:48 +0000 |
commit | 40e0fa4c1ef0e9715ffb366d6c2a829948b8ff64 (patch) | |
tree | 89580a316b5c955e022901ba1358aa5a97091b27 | |
parent | 88a3caaafeef4600f597d64f640054937c4d9ff4 (diff) |
* missing.h (isnan): avoid macro expantion
"extern int isinf(double);" to
"extern int ((sizeof(double)==sizeof(float))?_Isinff(double):_Isinf(double));" on
HP-UX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | missing.h | 10 |
2 files changed, 13 insertions, 4 deletions
@@ -1,3 +1,10 @@ +Sun Jan 1 15:28:46 2006 Tanaka Akira <[email protected]> + + * missing.h (isnan): avoid macro expantion + "extern int isinf(double);" to + "extern int ((sizeof(double)==sizeof(float))?_Isinff(double):_Isinf(double));" on + HP-UX. + Sun Jan 1 14:42:54 2006 Hirokazu Yamamoto <[email protected]> * win32/win32.c (rb_w32_seekdir): should not segfault even if passed @@ -62,11 +62,13 @@ extern double erf(double); extern double erfc(double); #endif -#ifndef HAVE_ISINF -# if defined(HAVE_FINITE) && defined(HAVE_ISNAN) -# define isinf(x) (!finite(x) && !isnan(x)) -# else +#ifndef isinf +# ifndef HAVE_ISINF +# if defined(HAVE_FINITE) && defined(HAVE_ISNAN) +# define isinf(x) (!finite(x) && !isnan(x)) +# else extern int isinf(double); +# endif # endif #endif |