summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-03-29 13:31:14 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-03-29 13:31:14 +0000
commitaf70fbf1a9371e406a0ab25f5cfdc81d99fbc740 (patch)
tree83648b9312a3e1f43069a12293fd8846a8206bf4 /TAO/TAO_IDL
parentdc8028de59512c352e9f029c2b5363cbe1ed292a (diff)
downloadATCD-af70fbf1a9371e406a0ab25f5cfdc81d99fbc740.tar.gz
Thu Mar 29 13:40:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/TAO_IDL')
-rw-r--r--TAO/TAO_IDL/be/be_codegen.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp
index 720f4c52c4d..105e16b7c9c 100644
--- a/TAO/TAO_IDL/be/be_codegen.cpp
+++ b/TAO/TAO_IDL/be/be_codegen.cpp
@@ -860,9 +860,20 @@ TAO_CodeGen::start_anyop_header (const char *fname)
// Generate the include statement for the client header. We just
// need to put only the base names. Path info is not required.
- *this->anyop_header_ << "\n#include \"" << tao_prefix
- << be_global->be_get_client_hdr_fname ()
- << "\"";
+ if (be_global->safe_include ())
+ {
+ // Generate the safe include if it is defined instead of the client header
+ // need to put only the base names. Path info is not required.
+ *this->anyop_header_ << "\n#include \""
+ << be_global->safe_include ()
+ << "\"";
+ }
+ else
+ {
+ *this->anyop_header_ << "\n#include \"" << tao_prefix
+ << be_global->be_get_client_hdr_fname ()
+ << "\"";
+ }
// If we have not suppressed Any operator generation and also
// are not generating the operators in a separate file, we
@@ -976,22 +987,11 @@ TAO_CodeGen::start_anyop_source (const char *fname)
<< "\"";
}
- if (be_global->safe_include ())
- {
- // Generate the safe include if it is defined instead of the client header
- // need to put only the base names. Path info is not required.
- *this->anyop_source_ << "\n#include \""
- << be_global->safe_include ()
- << "\"";
- }
- else
- {
- // Generate the include statement for the client header. We just
- // need to put only the base names. Path info is not required.
- *this->anyop_source_ << "\n#include \""
- << be_global->be_get_anyop_header_fname (1)
- << "\"";
- }
+ // Generate the include statement for the client header. We just
+ // need to put only the base names. Path info is not required.
+ *this->anyop_source_ << "\n#include \""
+ << be_global->be_get_anyop_header_fname (1)
+ << "\"";
this->gen_typecode_includes (this->anyop_source_);