emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114748: Port to Solaris 10 and its bundled GCC.


From: Paul Eggert
Subject: [Emacs-diffs] trunk r114748: Port to Solaris 10 and its bundled GCC.
Date: Wed, 23 Oct 2013 04:37:21 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114748
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Tue 2013-10-22 21:37:17 -0700
message:
  Port to Solaris 10 and its bundled GCC.
  
  Problem reported by Timothy C. Burt.
  * floatfns.c (isfinite, isnan): Redefine unconditionally.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/floatfns.c                 floatfns.c-20091113204419-o5vbwnq5f7feedwu-141
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-10-21 14:11:25 +0000
+++ b/src/ChangeLog     2013-10-23 04:37:17 +0000
@@ -1,3 +1,9 @@
+2013-10-23  Paul Eggert  <address@hidden>
+
+       Port to Solaris 10 and its bundled GCC.
+       Problem reported by Timothy C. Burt.
+       * floatfns.c (isfinite, isnan): Redefine unconditionally.
+
 2013-10-21  Dmitry Antipov  <address@hidden>
 
        Do not allow font caches to grow too large.

=== modified file 'src/floatfns.c'
--- a/src/floatfns.c    2013-06-20 14:15:42 +0000
+++ b/src/floatfns.c    2013-10-23 04:37:17 +0000
@@ -46,12 +46,13 @@
 
 #include <math.h>
 
-#ifndef isfinite
-# define isfinite(x) ((x) - (x) == 0)
-#endif
-#ifndef isnan
-# define isnan(x) ((x) != (x))
-#endif
+/* 'isfinite' and 'isnan' cause build failures on Solaris 10 with the
+   bundled GCC in c99 mode.  Work around the bugs with simple
+   implementations that are good enough.  */
+#undef isfinite
+#define isfinite(x) ((x) - (x) == 0)
+#undef isnan
+#define isnan(x) ((x) != (x))
 
 /* Check that X is a floating point number.  */
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]