Skip to content

Commit 8364b36

Browse files
authored
Merge pull request scipy#9374 from aixoss/master
FIX: AIX compilation issue with NAN and INFINITY
2 parents c23542a + 465772e commit 8364b36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scipy/special/cephes/dd_real.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ extern const double2 DD_C_LOG10;
105105
extern const double2 DD_C_ZERO;
106106
extern const double2 DD_C_ONE;
107107

108-
#if defined(__STDC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && defined(NAN)
108+
/* NAN definition in AIX's math.h doesn't make it qualify as constant literal. */
109+
#if defined(__STDC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && defined(NAN) && !defined(_AIX)
109110
#define DD_C_NAN_IS_CONST
110111
extern const double2 DD_C_NAN;
111112
extern const double2 DD_C_INF;

0 commit comments

Comments
 (0)