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:
Riccardo Mottola 2014-12-23 00:31:46 +00:00
parent ebe325366f
commit 6485366084
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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;