Hi,

I'm about to add support for Cygwin-64 to GCC's libjava.

There was also one small problem in the classpath tree that
needed to be fixed for this.

Could some one please review the changes and take care,
that this patch (or an equivalent fix) goes into the original
classpath sources?


Thanks,
Bernd Edlinger


libjava/classpath/ChangeLog:

2014-05-11  Bernd Edlinger  <bernd.edlin...@hotmail.de>

        Fix current cygwin-64 build problems.
        * native/fdlibm/mprec.c (_REENT_CHECK_MP, _REENT_MP_FREELIST,
        _REENT_MP_P5S, __ULong, __Long): Undefine previous definitions.



diff -pur libjava/classpath/native/fdlibm/mprec.c 
libjava/classpath/native/fdlibm/mprec.c
--- libjava/classpath/native/fdlibm/mprec.c     2006-09-25 20:28:11.000000000 
+0200
+++ libjava/classpath/native/fdlibm/mprec.c     2014-05-05 15:48:50.852539000 
+0200
@@ -93,12 +93,17 @@
 #define _reent _Jv_reent
 #define _Bigint _Jv_Bigint
 
+#undef  _REENT_CHECK_MP
 #define _REENT_CHECK_MP(x)
+#undef  _REENT_MP_FREELIST
 #define _REENT_MP_FREELIST(x) ((x)->_freelist)
+#undef  _REENT_MP_P5S
 #define _REENT_MP_P5S(x) ((x)->_p5s)
 
-typedef unsigned long __ULong;
-typedef long __Long;
+#undef  __ULong
+#define __ULong unsigned long
+#undef  __Long
+#define __Long long
 
 static void *
 mprec_calloc (void *ignore, size_t x1, size_t x2)



                                          

Reply via email to