summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_codegen.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-08-01 08:36:52 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-08-01 08:36:52 +0000
commitdd49ff1080e11e52930be4b8ffb66b3a7f98857d (patch)
tree3f802173b586ec7f4f275102217daae9b0698716 /TAO/TAO_IDL/be/be_codegen.cpp
parentaf27e60d083fc627ad168cda397f3ad3ccad809b (diff)
downloadATCD-dd49ff1080e11e52930be4b8ffb66b3a7f98857d.tar.gz
ChangeLogTag: Wed Aug 1 08:25:33 UTC 2007 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_codegen.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_codegen.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp
index c4eb01b096d..27ab992f9f2 100644
--- a/TAO/TAO_IDL/be/be_codegen.cpp
+++ b/TAO/TAO_IDL/be/be_codegen.cpp
@@ -245,7 +245,17 @@ TAO_CodeGen::start_client_header (const char *fname)
<< "#endif /* ACE_LACKS_PRAGMA_ONCE */";
*this->client_header_ << be_nl;
+
+ // So the ostream operator header will be visible in included ORB files.
+ if (be_global->gen_ostream_operators ())
+ {
+ *this->client_header_ << "\n#if !defined (GEN_OSTREAM_OPS)\n"
+ << "#define GEN_OSTREAM_OPS\n"
+ << "#endif /* GEN_OSTREAM_OPS */";
+ }
+ *this->client_header_ << be_nl;
+
// Other include files.
if (be_global->stub_export_include () != 0)