
6 May
2006
6 May
'06
5:58 p.m.
On 06/05/06, Ben Fowler <ben.the.mole@...400...> wrote:
On 06/05/06, Brian <diskofish@...127...> wrote:
#if defined(__isnan) # define isNaN(_a) (__isnan(_a)) /* MacOSX/Darwin definition < 10.4 */
This never gets executed by the preprocessor. Was the intent to look for something that was defined in one of the OS X libraries or that someone manually would #define __isnan?
Yes. __isnan should be defined in all versions of Darwin (well, at least since Mac OS X 10.2). Look in /usr//include/architecture/ppc/math.h (or the header for your architecture).
FWIW, I have used this pre-processor verbiage
#elif defined( __MATH__ ) && defined(NAN)
to pickup Darwin.
I'll submit a patch tomorrow.
Ben