mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
In case NAN macro is defined in math.h, prefer that over using the nan() function call.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36647 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
93859d8011
commit
d4fd0ca901
2 changed files with 10 additions and 0 deletions
|
@ -1233,7 +1233,11 @@ otherTime(NSDate* other)
|
|||
- (NSTimeInterval) timeIntervalSinceDate: (NSDate*)otherDate
|
||||
{
|
||||
if (otherDate == nil)
|
||||
#ifndef NAN
|
||||
return nan("");
|
||||
#else
|
||||
return NAN;
|
||||
#endif
|
||||
/*
|
||||
{
|
||||
[NSException raise: NSInvalidArgumentException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue