Peter & Norman,
> > I've just been poked by Bill Joye about the isnan problem in AST.
> > Now that I look into this a bit more, it starts to dawn on me that the
> > basic cause of the problem is that isnan is not part of the ansi
> > standard.
>
> Ooooh yes it is:
> This is from ISO/IEC 9899:1999 (E) -- are you looking at the C89 standard?
> K&R's math.h doesn't mention isnan at all, but that's because their
> Appendices A and B refer to the 1988 draft ANSI standard X3.159-1989.
> That's the one that became C89, I think, and which was therefore
> superceded by C99.
I was referring to C89, which I presume is the "ansi" standard as opposed
to "c99" which I presume is the "iso" standard. Be that as it may, if
you do
% cpp -ansi -I. -Wall mapping.c mapping.cpp
% grep isnan mapping.cpp
you will see that the -ansi flag result in neither a function prototype
nor a macro definition for isnan being included in the preprocessor
output.
David
|