From b62508c3b4b082ab9f1c225bd6db80341ceab4f9 Mon Sep 17 00:00:00 2001 From: dengg Date: Wed, 6 Jun 2007 20:01:41 +0000 Subject: Wed Jun 6 20:00:19 UTC 2007 Gan Deng --- CIAO/ChangeLog | 7 +++++++ CIAO/examples/Null_Component/plan.h | 19 +++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CIAO/ChangeLog b/CIAO/ChangeLog index 3c20e1b48ba..aa7bf28d380 100644 --- a/CIAO/ChangeLog +++ b/CIAO/ChangeLog @@ -1,3 +1,10 @@ +Wed Jun 6 20:00:19 UTC 2007 Gan Deng + + * examples/Null_Component/plan.h + + Fixed Sun C++ on Salaris 10 linkage warning regarding + extern "C" and extern "C++" mismatch. + Wed Jun 6 16:52:46 UTC 2007 Gan Deng * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp diff --git a/CIAO/examples/Null_Component/plan.h b/CIAO/examples/Null_Component/plan.h index fce247dc321..53ace376bcb 100644 --- a/CIAO/examples/Null_Component/plan.h +++ b/CIAO/examples/Null_Component/plan.h @@ -6,6 +6,21 @@ extern "C" ::PortableServer::Servant create_Null_Component_Home_Servant ::CIAO::Session_Container *c, const char*); +// Below two extern "C++" is to fixing the "Anachronism" warning of Sun C++ 5.7 + +extern "C++" ::Components::HomeExecutorBase_ptr create_Null_Component_Home_Impl_wrapper (void) +{ + return create_Null_Component_Home_Impl (); +} + +extern "C++" ::PortableServer::Servant create_Null_Component_Home_Servant_wrapper + (::Components::HomeExecutorBase_ptr p, + ::CIAO::Session_Container *c, + const char* no_op) +{ + return create_Null_Component_Home_Servant (p, c, no_op); +} + struct HomeAttributes { char const * component_instance_name_; @@ -23,9 +38,9 @@ static const HomeAttributes homes_table[] = { "Null_Component_ComponentImplementations_Null_Assembly_Container_Null_Assembly_Null_Component", "create_Null_Component_Home_Impl", - create_Null_Component_Home_Impl, + create_Null_Component_Home_Impl_wrapper, "create_Null_Component_Home_Servant", - create_Null_Component_Home_Servant + create_Null_Component_Home_Servant_wrapper }, }; -- cgit v1.2.1