Re: Where is isnan? (and isinf etc..)
Re: Where is isnan? (and isinf etc..)
- Subject: Re: Where is isnan? (and isinf etc..)
- From: Chris Espinosa <email@hidden>
- Date: Wed, 7 Jan 2004 21:10:27 -0800
On Jan 7, 2004, at 9:13 AM, Jeremy Bell wrote:
I find that isnan and isinf and related functions are defined in cmath
but unfortunately are taken out by a preprocessor macro indicating
something about C99. How can I get isnan defined, and is C99 really
unstable as the comments say?
cmath is a C++ header, and isnan was built into C++ before it was
standardized in C. That guard macro is basically saying "if you're
using a sufficiently-modern C dialect, you don't need to define isnan
as a C++ extension to C."
There are several definitions and implementations of isnan, but if
you're using straight C/C++ you probably want the ones in
/usr/include/math.h.
Chris Espinosa
Apple
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.