summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-16 22:13:17 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-16 22:13:17 +0000
commit2eb0bd721f8697c1ff50bfa933b26df6830de6d8 (patch)
tree5416823a4abcbcdfd4d2c2e5849fad35deae6e76
parentb901a74489c7e41958ece4b04d18e21f89db2734 (diff)
downloadATCD-2eb0bd721f8697c1ff50bfa933b26df6830de6d8.tar.gz
(CORBA_SEQUENCE): replaced CORBA::B_FALSE with 0 because some compilers, such as egcs, can't handle its use before definition below in class CORBA
-rw-r--r--TAO/tao/corbacom.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/TAO/tao/corbacom.h b/TAO/tao/corbacom.h
index ab00f361729..e05877f7977 100644
--- a/TAO/tao/corbacom.h
+++ b/TAO/tao/corbacom.h
@@ -174,7 +174,13 @@ struct CORBA_SEQUENCE
: maximum (0),
length (0),
buffer (0),
- release (CORBA::B_FALSE) { }
+# if SIZEOF_BOOL != 0
+ release (false) { }
+# else /* "bool" not builtin to this compiler */
+ // The following hard-codes the definition of CORBA::B_FALSE here, but
+ // this class will be disappearing soon . . .
+ release (0 /* CORBA::B_FALSE */) { }
+# endif /* "bool" not builtin */
// XXX destructor should free buffer, elements!!
~CORBA_SEQUENCE (void) { }