[SciPy-dev] NAN in special/cephes breaks CVS build

Pearu Peterson pearu at cens.ioc.ee
Sat Feb 23 06:52:48 CST 2002

On Sat, 23 Feb 2002, Pearu Peterson wrote:

> /home/users/pearu/src_cvs/scipy/special/cephes/iv.c:85: `NAN' undeclared
> (first use in this function)

Ok, I found that one needs to use -D_ISOC99_SOURCE when compiling.
See /usr/include/features.h for comments and /usr/include/bits/nan.h.

Here is a fix that should be the first thing in the header of mconf.h

#ifndef NAN
#define _ISOC99_SOURCE
#include <math.h>


More information about the Scipy-dev mailing list