diff options
author | msmit <msmit@remedy.nl> | 2011-12-04 16:04:46 +0000 |
---|---|---|
committer | msmit <msmit@remedy.nl> | 2011-12-04 16:04:46 +0000 |
commit | 06430f788c5922c522ee6e4930128edcba0ddcc4 (patch) | |
tree | a790ebaac32a22accb34a6947a2dd10c55714fce | |
parent | 7e7714d3b45b428eaeddf299a9e62ba3ed594ad9 (diff) | |
download | ATCD-06430f788c5922c522ee6e4930128edcba0ddcc4.tar.gz |
Sun Dec 4 16:04:04 UTC 2011 Marcel Smit <msmit@remedy.nl>
* TAO_IDL/be/be_codegen.cpp:
One step closer in solving AMI4CCM compile issues.
-rw-r--r-- | TAO/ChangeLog.BRANCH | 5 | ||||
-rw-r--r-- | TAO/TAO_IDL/be/be_codegen.cpp | 36 |
2 files changed, 28 insertions, 13 deletions
diff --git a/TAO/ChangeLog.BRANCH b/TAO/ChangeLog.BRANCH index 886ce5ec2e2..cd79cadc82a 100644 --- a/TAO/ChangeLog.BRANCH +++ b/TAO/ChangeLog.BRANCH @@ -1,3 +1,8 @@ +Sun Dec 4 16:04:04 UTC 2011 Marcel Smit <msmit@remedy.nl> + + * TAO_IDL/be/be_codegen.cpp: + One step closer in solving AMI4CCM compile issues. + Fri Dec 2 15:57:52 UTC 2011 Marcel Smit <msmit@remedy.nl> * TAO_IDL/be/be_provides.cpp: diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp index e59c29fa346..d850b3e6370 100644 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ b/TAO/TAO_IDL/be/be_codegen.cpp @@ -1194,27 +1194,37 @@ TAO_CodeGen::start_ciao_svnt_template_header (const char *fname) this->gen_svnt_hdr_includes (this->ciao_svnt_template_header_); - size_t const nfiles = idl_global->n_included_idl_files (); - - if (nfiles > 0) + if (idl_global->ami_connector_seen_) { - os << be_nl; + *this->ciao_svnt_template_header_ << be_nl + << "#include \"" + << "connectors/ami4ccm/ami4ccm/ami4ccm_svnt_T.h\"" + << be_nl; } - for (size_t j = 0; j < nfiles; ++j) + else { - char* idl_name = idl_global->included_idl_files ()[j]; + size_t const nfiles = idl_global->n_included_idl_files (); - if (this->is_system_file (idl_name)) + if (nfiles > 0) { - continue; + os << be_nl; } - UTL_String str (idl_name); + for (size_t j = 0; j < nfiles; ++j) + { + const char* idl_name = idl_global->included_idl_files ()[j]; - this->gen_standard_include ( - this->ciao_svnt_template_header_, - BE_GlobalData::be_get_svnt_template_hdr (&str, true)); + if (this->is_system_file (idl_name)) + { + continue; + } + UTL_String str (idl_name); - str.destroy (); + this->gen_standard_include ( + this->ciao_svnt_template_header_, + BE_GlobalData::be_get_svnt_template_hdr (&str, true)); + + str.destroy (); + } } return 0; |