This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[Digital UNIX V4.0B] Need to hide TRUE/FALSE for libjava


The following change from the libgcj 2.95 branch is necessary to compile
libjava on Digital UNIX V4.0B.  Otherwise the definitions of TRUE and FALSE
in <sys/types.h> (1 and 0) break files including java/lang/Boolean.h:

  static java::lang::Boolean *FALSE;
  static java::lang::Boolean *TRUE;

becomes

  static java::lang::Boolean *0;
  static java::lang::Boolean *1;

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE


Tue Aug 10 00:08:29 1999  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* include/javaprims.h (TRUE, FALSE): Redefine as themselves.
	Merged from libgcj 2.95 branch.

Index: include/javaprims.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/javaprims.h,v
retrieving revision 1.6
diff -u -p -r1.6 javaprims.h
--- javaprims.h	1999/08/08 14:06:21	1.6
+++ javaprims.h	1999/08/10 00:48:17
@@ -11,6 +11,11 @@ details.  */
 #ifndef __JAVAPRIMS_H__
 #define __JAVAPRIMS_H__
 
+#undef TRUE
+#define TRUE TRUE
+#undef FALSE
+#define FALSE FALSE
+
 // To force selection of correct types that will mangle consistently
 // across platforms.
 extern "Java"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]