]> git.eshelyaron.com Git - emacs.git/commitdiff
Port to Solaris 10 and its bundled GCC.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2013 04:37:17 +0000 (21:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 23 Oct 2013 04:37:17 +0000 (21:37 -0700)
Problem reported by Timothy C. Burt.
* floatfns.c (isfinite, isnan): Redefine unconditionally.

src/ChangeLog
src/floatfns.c

index 3bd9dce4fb7c3bb5bea121ebd9d034b5c0f14d00..b534e0a1ab0fb3416347b44212419442783bfe50 100644 (file)
@@ -1,3 +1,9 @@
+2013-10-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <dmantipov@yandex.ru>
 
        Do not allow font caches to grow too large.
index f3d0936f88866c52bbc4135134cd7bea5772fbff..9f0bab2a452e25f9d8ec915a93ffeafdc54dfa08 100644 (file)
@@ -46,12 +46,13 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #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.  */