mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Provide NAN constant for Solaris if not available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38257 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ebe325366f
commit
6485366084
2 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,9 @@
|
|||
* Source/GSSocketStream.m
|
||||
Fix code-path for non AF_INET6
|
||||
|
||||
* Source/NSDate.m
|
||||
Provide NAN constant for Solaris if not available.
|
||||
|
||||
2014-11-29 Sergei Golovin <Golovin.SV@gmail.com>
|
||||
|
||||
* Tests/base/NSURLConnection: Test helper tool plus a load of
|
||||
|
|
|
@ -49,6 +49,11 @@
|
|||
#define DISTANT_FUTURE 63113990400.0
|
||||
#define DISTANT_PAST -63113817600.0
|
||||
|
||||
/* On older Solaris we don't have NAN nor nan() */
|
||||
#if defined(__sun) && defined(__SVR4) && !defined(NAN)
|
||||
#define NAN 0x7fffffffffffffff
|
||||
#endif
|
||||
|
||||
const NSTimeInterval NSTimeIntervalSince1970 = 978307200.0;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue