diff options
-rw-r--r-- | TAO/tao/Messaging/Messaging_PolicyFactory.cpp | 4 | ||||
-rw-r--r-- | TAO/tao/Messaging/Messaging_PolicyFactory.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/TAO/tao/Messaging/Messaging_PolicyFactory.cpp b/TAO/tao/Messaging/Messaging_PolicyFactory.cpp index d93b65c098c..00b089ed21c 100644 --- a/TAO/tao/Messaging/Messaging_PolicyFactory.cpp +++ b/TAO/tao/Messaging/Messaging_PolicyFactory.cpp @@ -12,6 +12,8 @@ ACE_RCSID (Messaging, #include "tao/AnyTypeCode/TAOA.h" #include "tao/AnyTypeCode/Any.h" +#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1) + CORBA::Policy_ptr TAO_Messaging_PolicyFactory::create_buffering_constraint_policy ( const CORBA::Any& val @@ -31,6 +33,8 @@ TAO_Messaging_PolicyFactory::create_buffering_constraint_policy ( return servant; } +#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */ + CORBA::Policy_ptr TAO_Messaging_PolicyFactory::create_policy ( CORBA::PolicyType type, diff --git a/TAO/tao/Messaging/Messaging_PolicyFactory.h b/TAO/tao/Messaging/Messaging_PolicyFactory.h index 2a76ceb3993..823a3d46908 100644 --- a/TAO/tao/Messaging/Messaging_PolicyFactory.h +++ b/TAO/tao/Messaging/Messaging_PolicyFactory.h @@ -46,9 +46,11 @@ public: ACE_THROW_SPEC ((CORBA::SystemException, CORBA::PolicyError)); private: +#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1) CORBA::Policy_ptr create_buffering_constraint_policy (const CORBA::Any& val ACE_ENV_ARG_DECL_WITH_DEFAULTS); +#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */ }; |