Skip to content

Commit af88494

Browse files
authored
old systems may not have inf in math.h
1 parent ee41b6e commit af88494

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utest/test_dnrm2.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333

3434
#include "openblas_utest.h"
3535
#if defined(BUILD_DOUBLE)
36+
37+
#ifndef INFINITY
38+
#define INFINITY HUGE_VALF
39+
#endif
40+
3641
CTEST(dnrm2,dnrm2_inf)
3742
{
3843
double x[29];

0 commit comments

Comments
 (0)