• 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: Lyndsey <email@hidden>
  • Date: Tue, 29 Aug 2006 08:48:38 -0400
  • Thread-topic: Cmath and math.h Changes in Xcode 2.4

On 8/28/06 10:59 PM, "Mike Jackson" <email@hidden> wrote:

> Was there some change to Xcode (and the entire tool chain) in Xcode 2.4 that
> would affect the isnan(x) function?
>
> 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
>
> Where as it used to be just:
> #if defined(__APPLE__)
>   #include <math.h>
>   #define isnan(x) __isnand((double)x)
> #endif
>
>  Just curious....

I came up against the same problem and Tommy Nordgren (whom I could not get
a reply thank-you-email to) found that:

Preprocessing and grepping for isnand gives the following line:
static __inline__ int __inline_isnand( double __x ) { return __x !=
__x; }
So it looks as the correct name is :  __inline_isnand

This is only for Intel builds, it is still __isnand on PowePC.

Lyndsey

--

Lyndsey Ferguson
Software Engineer
email@hidden

VectorWorks 12
Go from life without 12 to life without limits.

Visit http://www.vectorworks.net for more information.

 _______________________________________________
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

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

  • Prev by Date: build phase "copy files" not working with PEF file
  • Next by Date: Calling back from CFM into Mach-O [was: Mach-O app calling CFM plug-in?]
  • Previous by thread: Re: 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