Add a check for HAVE_DECL_ISINF and HAVE_DECL_ISNAN in support of
@@ -400,6 +400,8 @@ done:
#if defined __APPLE__
/** \internal */
+#if ! defined HAVE_DECL_ISINF
+
int isinf(double x)
{
union { unsigned long long u; double f; } ieee754;
@@ -408,6 +410,9 @@ int isinf(double x)
( (unsigned)ieee754.u == 0 );
}
+#endif /* HAVE_DECL_ISINF */
+
+#if ! defined HAVE_DECL_ISNAN
/** \internal */
int isnan(double x)
{
@@ -417,6 +422,8 @@ int isnan(double x)
( (unsigned)ieee754.u != 0 ) > 0x7ff00000;
}
+#endif /* HAVE_DECL_ISNAN */
+
#endif /*APPLE*/
#endif /*!_INTEL_COMPILER*/
