In jcl.c we redefine __attribute__(x) for non-GCC compilers. This can be
improved a little by redefining it only if it's not already defined.
2005-12-16 Roman Kennke <[EMAIL PROTECTED]>
* native/jni/classpath/jcl.c:
Only redefine __attribute__ if it's not already defined.
/Roman
Index: native/jni/classpath/jcl.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/classpath/jcl.c,v
retrieving revision 1.18
diff -u -r1.18 jcl.c
--- native/jni/classpath/jcl.c 17 Sep 2005 21:41:33 -0000 1.18
+++ native/jni/classpath/jcl.c 16 Dec 2005 17:46:43 -0000
@@ -43,7 +43,9 @@
#include <jcl.h>
#ifndef __GNUC__
-#define __attribute__(x) /* nothing */
+ #ifndef __attribute__
+ #define __attribute__(x) /* nothing */
+ #endif
#endif
JNIEXPORT void JNICALL
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches