OSDN Git Service

2005-02-01 Paul Thomas <paulthomas2@wanadoo.fr>
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Feb 2005 09:06:22 +0000 (09:06 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Feb 2005 09:06:22 +0000 (09:06 +0000)
PR libgfortran/19363
PR libgfortran/19691
* libgfortran.h (isfinite): Work around broken isfinite(x) in Cygwin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94530 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/libgfortran.h

index d0aabea..e932ed1 100644 (file)
@@ -1,3 +1,9 @@
+2005-02-01  Paul Thomas <paulthomas2@wanadoo.fr>
+
+       PR libgfortran/19363
+       PR libgfortran/19691
+       * libgfortran.h (isfinite): Work around broken isfinite(x) in Cygwin.
+
 2005-01-30  Bud Davis  <bdavis@gfortran.org>
 
        PR fortran/19647
index dfa2e40..7dd6993 100644 (file)
@@ -171,9 +171,14 @@ typedef off_t gfc_offset;
 
 /* The isfinite macro is only available with C99, but some non-C99
    systems still provide fpclassify, and there is a `finite' function
-   in BSD.  When isfinite is not available, try to use one of the
+   in BSD.
+
+   Also, isfinite is broken on Cygwin.
+
+   When isfinite is not available, try to use one of the
    alternatives, or bail out.  */
-#if !defined(isfinite)
+#if (!defined(isfinite) || defined(__CYGWIN__))
+#undef isfinite
 static inline int
 isfinite (double x)
 {