From: Alan W. I. <ir...@be...> - 2006-08-15 22:51:30
|
On 2006-08-15 15:18-0700 Alan W. Irwin wrote: > For the life of me I cannot see why that change is necessary. All that > nan.h does is #define NaN... Oops. Actually, that was the old nan.h. I see now that the new one does #define isnan _isnan in the bare windows case and this is obviously needed for example 21. To make our life a bit simpler I have just made the additional change of replacing #include "nan.h" by #if defined(_WIN32) && defined(_MSC_VER) #define isnan _isnan #endif in x21c.c. Then we don't have to worry about adding the extra -I option to find nan.h in the build tree, and we don't have to install nan.h so that the installed examples work. Please test that my change works for you. In particular I wasn't sure whether #include <float.h> #include <ymath.h> were needed or not to determine _isnan. Please put them in if they are needed. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |