Skip to content

Commit

Permalink
0.7.x: special: ensure NAN/INFINITY are available in amos_wrappers (e…
Browse files Browse the repository at this point in the history
…ven on non-C99 compilers)

Backported: http://svn.scipy.org/svn/scipy/trunk@5699 d6536bca-fef9-0310-8506-e4c0a848fbcf
(cherry picked from commit 332a8ddf77e5117f288436471505d2e2fa5b2e27)
  • Loading branch information
cournape committed May 26, 2009
1 parent 3970d8b commit 956b322
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scipy/special/amos_wrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
#include "Python.h"
#include "cephes/mconf.h"

#ifndef NAN
extern double NAN;
#endif

#ifndef INFINITY
extern double INFINITY;
#endif

#define DO_MTHERR(name, varp) \
do { \
if (nz !=0 || ierr != 0) { \
Expand Down

0 comments on commit 956b322

Please sign in to comment.