Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » isnan [BUG?] fix for Core OSX11
isnan [BUG?] fix for Core OSX11 [message #33759] Sun, 11 September 2011 03:35 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Sorry, on mac OS X in Core Defs.h (around line 250) with this fix:

#ifdef PLATFORM_WIN32
inline bool IsNaN(double d)        { return _isnan(d); }
#elif PLATFORM_OSX11
inline bool IsNaN(double d)        { return std::isnan(d); }
#else
inline bool IsNaN(double d)        { return isnan(d); }
#endif


upp compiles. Otherwise not. Do you think this fix is ok? Or should someone dig deeper as in here: http://stackoverflow.com/questions/2249110/how-do-i-make-a-p ortable-isnan-isinf-function?
Re: isnan [BUG?] fix for Core OSX11 [message #33760 is a reply to message #33759] Sun, 11 September 2011 04:09 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
AFAIK, it can just be
inline bool IsNaN(double d)        { return d != d; }


Regards,
Novo
Previous Topic: Retriving data in record containing ""
Next Topic: read/write to pipe /dev/rtp..?
Goto Forum:
  


Current Time: Wed Apr 24 05:03:37 CEST 2024

Total time taken to generate the page: 0.02406 seconds