Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!mailrus!cornell!rochester!uhura.cc.rochester.edu!ur-valhalla!micropen!dave From: dave@micropen (David F. Carlson) Newsgroups: comp.bugs.sys5 Subject: bug in cpp in SV/363 r3.2 and older Message-ID: <824@micropen> Date: 8 Aug 89 18:39:37 GMT Organization: Micropen Direct Writing Systems, Pittsford, NY Lines: 26 For the following program: #include #include 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 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