Hi,

Seems a couple of local modifications to fdlibm.h were lost with the
recent fdlibm import. This introduces two of them that should solve the
cygwin compile issue.

2006-03-06  Mark Wielaard  <[EMAIL PROTECTED]>

    Fixes bug #26568 reported by Paul Jenner <[EMAIL PROTECTED]>
    * native/fdlibm/fdlibm.h (__ieee754_rem_pio2): Return an int32_t.
    (isnan): Define explicitly isnan if it is not a macro.

Committed to trunk, 0.90 and generics branch.

Cheers,

Mark
Index: native/fdlibm/fdlibm.h
===================================================================
RCS file: /cvsroot/classpath/classpath/native/fdlibm/fdlibm.h,v
retrieving revision 1.12
diff -u -r1.12 fdlibm.h
--- native/fdlibm/fdlibm.h	27 Feb 2006 02:09:54 -0000	1.12
+++ native/fdlibm/fdlibm.h	6 Mar 2006 16:47:55 -0000
@@ -157,7 +157,11 @@
 extern double erfc __P((double));
 extern double gamma __P((double));
 extern double hypot __P((double, double));
-extern int isnan __P((double));
+
+#if !defined(isnan) && !defined(HAVE_ISNAN)
+#define isnan(x) ((x) != (x))
+#endif
+
 extern int finite __P((double));
 extern double j0 __P((double));
 extern double j1 __P((double));
@@ -236,7 +240,7 @@
 extern double __ieee754_jn __P((int,double));
 extern double __ieee754_yn __P((int,double));
 extern double __ieee754_remainder __P((double,double));
-extern int    __ieee754_rem_pio2 __P((double,double*));
+extern int32_t    __ieee754_rem_pio2 __P((double,double*));
 #ifdef _SCALB_INT
 extern double __ieee754_scalb __P((double,int));
 #else

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to