* Updated from GNU Classpath:
authortwisti <none@none>
Sun, 8 Jan 2006 23:37:24 +0000 (23:37 +0000)
committertwisti <none@none>
Sun, 8 Jan 2006 23:37:24 +0000 (23:37 +0000)
2005-12-17  Guilhem Lavaux  <guilhem@kaffe.org>

         * native/fdlibm/fdlibm.h
         (isnan): Define explicitly isnan if it is not a macro.

src/fdlibm/fdlibm.h

index 156a03c1e45b34d822eb83da30e10866f513e8cd..b1db4e8cfb76a3baefd04d4dfc5f9328753d3c03 100644 (file)
@@ -93,7 +93,11 @@ extern double erf __P((double));
 extern double erfc __P((double));
 extern double gamma __P((double));
 extern double hypot __P((double, double));
-extern int isnan __P((double));
+
+#ifndef isnan
+#define isnan(x) ((x) != (x))
+#endif
+
 extern int finite __P((double));
 extern double j0 __P((double));
 extern double j1 __P((double));