зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
88a3caaafe
Коммит
40e0fa4c1e
|
@ -1,3 +1,10 @@
|
|||
Sun Jan 1 15:28:46 2006 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* 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 <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* win32/win32.c (rb_w32_seekdir): should not segfault even if passed
|
||||
|
|
10
missing.h
10
missing.h
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче