From af88494f8727404eef6f4adb4d3625d0b42cfb93 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 3 Jul 2022 18:23:51 +0200 Subject: [PATCH] old systems may not have inf in math.h --- utest/test_dnrm2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utest/test_dnrm2.c b/utest/test_dnrm2.c index f710431d0..6c76c47c2 100644 --- a/utest/test_dnrm2.c +++ b/utest/test_dnrm2.c @@ -33,6 +33,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "openblas_utest.h" #if defined(BUILD_DOUBLE) + +#ifndef INFINITY +#define INFINITY HUGE_VALF +#endif + CTEST(dnrm2,dnrm2_inf) { double x[29];