diff options
Diffstat (limited to 'TAO/tao/ORB.cpp')
-rw-r--r-- | TAO/tao/ORB.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp index 98f0ae7d448..5b3cc8b8d07 100644 --- a/TAO/tao/ORB.cpp +++ b/TAO/tao/ORB.cpp @@ -494,23 +494,31 @@ CORBA_ORB::resolve_poa_current (void) CORBA_Object_ptr CORBA_ORB::resolve_policy_manager (CORBA::Environment& ACE_TRY_ENV) { +#if defined (TAO_HAS_CORBA_MESSAGING) TAO_Policy_Manager *policy_manager = this->orb_core_->policy_manager (); if (policy_manager == 0) return CORBA_Object::_nil (); return policy_manager->_this (ACE_TRY_ENV); +#else + return CORBA_Object::_nil (); +#endif /* TAO_HAS_CORBA_MESSAGING */ } CORBA_Object_ptr CORBA_ORB::resolve_policy_current (CORBA::Environment& ACE_TRY_ENV) { +#if defined (TAO_HAS_CORBA_MESSAGING) TAO_Policy_Current *policy_current = this->orb_core_->policy_current (); if (policy_current == 0) return CORBA_Object::_nil (); return policy_current->_this (ACE_TRY_ENV); +#else + return CORBA_Object::_nil (); +#endif /* TAO_HAS_CORBA_MESSAGING */ } CORBA_Object_ptr |