This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
David wrote: > In file included from > ../../../libgcj/libjava/java/lang/reflect/natField.cc:27: > java/lang/Boolean.h:21: parse error before `0' > java/lang/Boolean.h:22: parse error before `1' Try the following patch: Thu Apr 15 07:10:18 1999 Anthony Green <green@cygnus.com> * java/lang/reflect/natField.cc: Undefine TRUE and FALSE for the sake of java.lang.Boolean. Index: natField.cc =================================================================== RCS file: /cvs/java/libgcj/libjava/java/lang/reflect/natField.cc,v retrieving revision 1.1.1.1 diff -u -p -u -r1.1.1.1 natField.cc --- natField.cc 1999/04/07 14:52:39 1.1.1.1 +++ natField.cc 1999/04/15 14:10:07 @@ -14,6 +14,12 @@ details. */ #include <cni.h> #include <jvm.h> + +// System headers included above may have defined TRUE and FALSE. We +// must undefine them for the sake of java.lang.Boolean. +#undef TRUE +#undef FALSE + #include <java/lang/reflect/Field.h> #include <java/lang/reflect/Modifier.h> #include <java/lang/IllegalArgumentException.h> AG -- Anthony Green Cygnus Solutions Sunnyvale, California