Use alternate construct that catches both C99 isfinite macro and std::isfinite.