summaryrefslogtreecommitdiff
path: root/TAO/tao/Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Object.h')
-rw-r--r--TAO/tao/Object.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/TAO/tao/Object.h b/TAO/tao/Object.h
index 0bf684025b0..b0c1fbaf336 100644
--- a/TAO/tao/Object.h
+++ b/TAO/tao/Object.h
@@ -32,6 +32,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#if (TAO_HAS_INTERFACE_REPOSITORY == 1)
+ TAO_NAMESPACE_BEGIN (IR)
+ class InterfaceDef;
+ TAO_NAMESPACE_END
+#endif /* TAO_HAS_INTERFACE_REPOSITORY == 1 */
+
class TAO_ServantBase;
class TAO_Stub;
@@ -79,7 +85,7 @@ public:
virtual CORBA::Boolean _is_collocated (void) const;
// are we collocated with the servant?
-#if (TAO_HAS_MINIMUM_CORBA == 0)
+#if !defined (TAO_HAS_MINIMUM_CORBA)
virtual CORBA::Boolean _non_existent (CORBA_Environment &ACE_TRY_ENV =
TAO_default_environment ());
@@ -90,8 +96,12 @@ public:
// This method is deprecated in the CORBA 2.2 spec, we just return 0
// every time.
- virtual CORBA::InterfaceDef_ptr _get_interface (CORBA_Environment &ACE_TRY_ENV =
- TAO_default_environment ());
+#if (TAO_HAS_INTERFACE_REPOSITORY == 1)
+
+ virtual IR::InterfaceDef *_get_interface (CORBA_Environment &ACE_TRY_ENV =
+ TAO_default_environment ());
+
+#endif /* TAO_HAS_INTERFACE_REPOSITORY == 1 */
// Interface repository related operations.