old systems may not have inf in math.h
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sun, 3 Jul 2022 16:23:51 +0000 (18:23 +0200)
committerGitHub <noreply@github.com>
Sun, 3 Jul 2022 16:23:51 +0000 (18:23 +0200)
utest/test_dnrm2.c

index f710431..6c76c47 100644 (file)
@@ -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];