Author: rmottola
Date: Tue Dec 23 01:31:46 2014
New Revision: 38257
URL: http://svn.gna.org/viewcvs/gnustep?rev=38257&view=rev
Log:
Provide NAN constant for Solaris if not available
Modified:
libs/base/trunk/ChangeLog
libs/base/trunk/Source/NSDate.m
Modified: libs/base/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=38257&r1=38256&r2=38257&view=diff
==============================================================================
--- libs/base/trunk/ChangeLog (original)
+++ libs/base/trunk/ChangeLog Tue Dec 23 01:31:46 2014
@@ -2,6 +2,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 <[email protected]>
Modified: libs/base/trunk/Source/NSDate.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSDate.m?rev=38257&r1=38256&r2=38257&view=diff
==============================================================================
--- libs/base/trunk/Source/NSDate.m (original)
+++ libs/base/trunk/Source/NSDate.m Tue Dec 23 01:31:46 2014
@@ -48,6 +48,11 @@
/* These constants seem to be what MacOS-X uses */
#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;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs