Skip to content

Commit 40e0fa4

Browse files
committed
* 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
1 parent 88a3caa commit 40e0fa4

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Sun Jan 1 15:28:46 2006 Tanaka Akira <[email protected]>
2+
3+
* missing.h (isnan): avoid macro expantion
4+
"extern int isinf(double);" to
5+
"extern int ((sizeof(double)==sizeof(float))?_Isinff(double):_Isinf(double));" on
6+
HP-UX.
7+
18
Sun Jan 1 14:42:54 2006 Hirokazu Yamamoto <[email protected]>
29

310
* win32/win32.c (rb_w32_seekdir): should not segfault even if passed

missing.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ extern double erf(double);
6262
extern double erfc(double);
6363
#endif
6464

65-
#ifndef HAVE_ISINF
66-
# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
67-
# define isinf(x) (!finite(x) && !isnan(x))
68-
# else
65+
#ifndef isinf
66+
# ifndef HAVE_ISINF
67+
# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
68+
# define isinf(x) (!finite(x) && !isnan(x))
69+
# else
6970
extern int isinf(double);
71+
# endif
7072
# endif
7173
#endif
7274

0 commit comments

Comments
 (0)