Hi all,
the attached patch fixes many warnings on cygwin, and makes classpath
build there again.
cheers,
dalibor topic
2007-09-27 Dalibor Topic <[EMAIL PROTECTED]>
* native/fdlibm/dtoa.c: Include mprec.h after system includes.
* native/fdlibm/mprec.h [_EXFUN]: Only define _EXFUN if it is not
already defined.
Index: native/fdlibm/dtoa.c
===================================================================
RCS file: /sources/classpath/classpath/native/fdlibm/dtoa.c,v
retrieving revision 1.6
diff -u -r1.6 dtoa.c
--- native/fdlibm/dtoa.c 19 Sep 2007 13:31:18 -0000 1.6
+++ native/fdlibm/dtoa.c 26 Sep 2007 20:23:59 -0000
@@ -26,9 +26,9 @@
[EMAIL PROTECTED] or research!dmg
*/
-#include "mprec.h"
#include <string.h>
#include <stdlib.h>
+#include "mprec.h"
static int
_DEFUN (quorem,
Index: native/fdlibm/mprec.h
===================================================================
RCS file: /sources/classpath/classpath/native/fdlibm/mprec.h,v
retrieving revision 1.10
diff -u -r1.10 mprec.h
--- native/fdlibm/mprec.h 14 Sep 2006 10:10:28 -0000 1.10
+++ native/fdlibm/mprec.h 26 Sep 2007 20:23:59 -0000
@@ -294,7 +294,9 @@
#define _SIGNED signed
#define _DOTS , ...
#define _VOID void
+#ifndef _EXFUN
#define _EXFUN(name, proto) name proto
+#endif /* !EXFUN */
#define _DEFUN(name, arglist, args) name(args)
#define _DEFUN_VOID(name) name(_NOARGS)
#define _CAST_VOID (void)