checks for the existence of finite(x) and isinf(x) built into app/gpsymreg.
Linux gcc compilers have the 'macros ??' but solaris gcc does not
This commit is contained in:
parent
c7aba2f3c4
commit
375568853a
2 changed files with 6 additions and 0 deletions
|
|
@ -161,8 +161,11 @@ class Node
|
|||
}
|
||||
|
||||
// if the result is infinite (positive or negative) or not_a_number (nan) then result becomes 0
|
||||
// however some versions of gcc (e.g. 2.95.2 on solaris) don't have the finite(x) defined
|
||||
#ifdef finite
|
||||
if (!finite(result))
|
||||
result=0;
|
||||
#endif
|
||||
}
|
||||
|
||||
template<class Children>
|
||||
|
|
|
|||
Reference in a new issue