dave@micropen (David F. Carlson) (08/09/89)
For the following program:
#include <stdio.h>
#include <nan.h>
float g = 1.0;
main()
{
fprintf(stderr,"I'm OK = %d.\n", IsNANorINF(g));
}
Firstly, required define _IEEE is missing from cpp(1).
Secondly, putting a #define _IEEE before the include of <nan.h>
above will cause cpp to barf on the next line of the file nan.h
after the #if _IEEE. However, -D_IEEE on the command line will
cause the file to parse and compile and execute correctly.
This is true under ESIX 3.2 and Microport 3.0e.
--
David F. Carlson, Micropen, Inc.
micropen!dave@ee.rochester.edu
"The faster I go, the behinder I get." --Lewis Carroll