mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-03 10:00:51 +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
1dd336dba0
commit
44ff05f3bf
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2013-05-17 Ivan Vučica <ivan@vucica.net>
|
||||||
|
|
||||||
|
* Source/NSDate.m:
|
||||||
|
In case NAN macro is defined in math.h, prefer that over
|
||||||
|
using the nan() function call.
|
||||||
|
|
||||||
2013-05-17 Richard Frith-Macdonald <rfm@gnu.org>
|
2013-05-17 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSMessagePortNameServer.m: fix error in line count check
|
* Source/NSMessagePortNameServer.m: fix error in line count check
|
||||||
|
|
|
@ -1233,7 +1233,11 @@ otherTime(NSDate* other)
|
||||||
- (NSTimeInterval) timeIntervalSinceDate: (NSDate*)otherDate
|
- (NSTimeInterval) timeIntervalSinceDate: (NSDate*)otherDate
|
||||||
{
|
{
|
||||||
if (otherDate == nil)
|
if (otherDate == nil)
|
||||||
|
#ifndef NAN
|
||||||
return nan("");
|
return nan("");
|
||||||
|
#else
|
||||||
|
return NAN;
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
[NSException raise: NSInvalidArgumentException
|
[NSException raise: NSInvalidArgumentException
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue