• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cmath and math.h Changes in Xcode 2.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cmath and math.h Changes in Xcode 2.4


  • Subject: Re: Cmath and math.h Changes in Xcode 2.4
  • From: Eric Albert <email@hidden>
  • Date: Mon, 28 Aug 2006 22:06:38 -0700

On Aug 28, 2006, at 7:59 PM, Mike Jackson wrote:

Was there some change to Xcode (and the entire tool chain) in Xcode 2.4 that
would affect the isnan(x) function?

There were no changes in the toolchain, but there may have been changes in the headers. I'd suggest asking this question on the perfoptimization-dev list because the folks from the Numerics team who own the math headers are on that list.


I have now come across two open source packages that get hung up on
"isnan(x) is undeclared in this context"  type errors.

The projects are OpenSceneGraph (www.openscenegraph.net) and ITK
(www.itk.org).

In ITK's case I had to change a #define to look like the following:

#if defined(__APPLE__)
#if (__GNUC__ >= 4)
  #include <cmath>
  #define isnan(x) std::isnan(x)
#else
  #include <math.h>
  #define isnan(x) __isnand((double)x)
#endif
#endif

I'm curious...is there some reason why you can't simply call isnan() and remove that block altogether?


-Eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Cmath and math.h Changes in Xcode 2.4 (From: Mike Jackson <email@hidden>)

  • Prev by Date: Re: Template trouble
  • Next by Date: Re: Debugger thread dump confusion
  • Previous by thread: Cmath and math.h Changes in Xcode 2.4
  • Next by thread: Re: Cmath and math.h Changes in Xcode 2.4
  • Index(es):
    • Date
    • Thread