diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_codegen.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_codegen.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp index 388d3776b6f..34a079e9d22 100644 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ b/TAO/TAO_IDL/be/be_codegen.cpp @@ -185,13 +185,17 @@ TAO_CodeGen::start_client_header (const char *fname) // generating iostream operators. The following is mainly // for VxWorks. - *this->client_header_ << "\n#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)\n"; + if (idl_global->gen_except_ostream_op () != 0) + { + *this->client_header_ << "\n#if defined (ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION)\n"; - if (idl_global->changing_standard_include_files () == 1) - *this->client_header_ << "#include \"ace/streams.h\"\n"; - else - *this->client_header_ << "#include <ace/streams.h>\n"; - *this->client_header_ << "#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */\n"; + if (idl_global->changing_standard_include_files () == 1) + *this->client_header_ << "#include \"ace/streams.h\"\n"; + else + *this->client_header_ << "#include <ace/streams.h>\n"; + + *this->client_header_ << "#endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */\n"; + } // Some compilers don't optimize the #ifndef header include // protection, but do optimize based on #pragma once. |