diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-16 22:13:17 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-16 22:13:17 +0000 |
commit | 2eb0bd721f8697c1ff50bfa933b26df6830de6d8 (patch) | |
tree | 5416823a4abcbcdfd4d2c2e5849fad35deae6e76 | |
parent | b901a74489c7e41958ece4b04d18e21f89db2734 (diff) | |
download | ATCD-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.h | 8 |
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) { } |