From 31b6798b2c344060b0d48ef8bd5f5d8ca39028b6 Mon Sep 17 00:00:00 2001 From: coryan Date: Thu, 7 May 1998 20:32:02 +0000 Subject: ChangeLogTag:Thu May 7 15:29:46 1998 Carlos O'Ryan --- TAO/TAO_IDL/be/be_codegen.cpp | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'TAO/TAO_IDL/be/be_codegen.cpp') diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp index cfa2f74d194..7cad882fd3e 100644 --- a/TAO/TAO_IDL/be/be_codegen.cpp +++ b/TAO/TAO_IDL/be/be_codegen.cpp @@ -227,10 +227,6 @@ TAO_CodeGen::client_header (const char *fname) this->client_header_->print ("#if !defined (%s)\n", macro_name); this->client_header_->print ("#define %s\n\n", macro_name); - *this->client_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - *this->client_header_ << "#include \"tao/corba.h\"\n"; if (idl_global->export_include () != 0) @@ -265,6 +261,11 @@ TAO_CodeGen::client_header (const char *fname) } } *this->client_header_ << "\n"; + + *this->client_header_ << "#if defined(_MSC_VER)\n" + << "#pragma warning(disable:4250)\n" + << "#endif /* _MSC_VER */\n\n"; + return 0; } } @@ -382,10 +383,6 @@ TAO_CodeGen::server_header (const char *fname) this->server_header_->print ("#if !defined (%s)\n", macro_name); this->server_header_->print ("#define %s\n\n", macro_name); - *this->server_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(disable:4250)\n" - << "#endif /* _MSC_VER */\n\n"; - // We must include all the skeleton headers corresponding to // IDL files included by the current IDL file. for (size_t j = 0; @@ -405,6 +402,10 @@ TAO_CodeGen::server_header (const char *fname) *this->server_header_ << "#include \"" << idl_global->be_get_client_hdr_fname () << "\"\n\n"; + *this->server_header_ << "#if defined(_MSC_VER)\n" + << "#pragma warning(disable:4250)\n" + << "#endif /* _MSC_VER */\n\n"; + return 0; } } @@ -484,16 +485,16 @@ TAO_CodeGen::server_inline (void) int TAO_CodeGen::end_client_header (void) { - *this->client_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(default:4250)\n" - << "#endif /* _MSC_VER */\n"; - // insert the code to include the inline file *this->client_header_ << "\n#if defined (__ACE_INLINE__)\n"; *this->client_header_ << "#include \"" << idl_global->be_get_client_inline_fname () << "\"\n"; *this->client_header_ << "#endif /* defined INLINE */\n\n"; + *this->client_header_ << "#if defined(_MSC_VER)\n" + << "#pragma warning(default:4250)\n" + << "#endif /* _MSC_VER */\n"; + // code to put the last #endif *this->client_header_ << "\n#endif /* if !defined */\n"; return 0; @@ -502,16 +503,16 @@ TAO_CodeGen::end_client_header (void) int TAO_CodeGen::end_server_header (void) { - *this->server_header_ << "#if defined(_MSC_VER)\n" - << "#pragma warning(default:4250)\n" - << "#endif /* _MSC_VER */\n"; - // insert the code to include the inline file *this->server_header_ << "\n#if defined (__ACE_INLINE__)\n"; *this->server_header_ << "#include \"" << idl_global->be_get_server_inline_fname () << "\"\n"; *this->server_header_ << "#endif /* defined INLINE */\n\n"; + *this->server_header_ << "#if defined(_MSC_VER)\n" + << "#pragma warning(default:4250)\n" + << "#endif /* _MSC_VER */\n"; + // code to put the last #endif *this->server_header_ << "\n#endif /* if !defined */\n"; return 0; -- cgit v1.2.1