diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-02-14 21:32:52 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-02-14 21:32:52 +0000 |
commit | 07d03841cb003e92440f069470563ef130cceecd (patch) | |
tree | 7f6dfca048b6a0f7264f5156fd8d8f3752d06110 /ace | |
parent | 6533a12f6695709edae6005f6819d7adf35917bc (diff) | |
download | ATCD-07d03841cb003e92440f069470563ef130cceecd.tar.gz |
ChangeLogTag: Mon Feb 14 21:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Global_Macros.h | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/ace/Global_Macros.h b/ace/Global_Macros.h index 1bb66514b5d..0bdc038c1df 100644 --- a/ace/Global_Macros.h +++ b/ace/Global_Macros.h @@ -96,13 +96,15 @@ private: # define ACE_UNIMPLEMENTED_FUNC(f) f; # endif /* ACE_NEEDS_FUNC_DEFINITIONS */ -// Easy way to designate that a class is used as a pseudo-namespace. -// Insures that g++ "friendship" anamolies are properly handled. -# define ACE_CLASS_IS_NAMESPACE(CLASSNAME) \ -private: \ -CLASSNAME (void); \ -CLASSNAME (const CLASSNAME&); \ -friend class ace_dewarn_gplusplus +#if !defined (ACE_LACKS_DEPRECATED_MACROS) + // Easy way to designate that a class is used as a pseudo-namespace. + // Insures that g++ "friendship" anamolies are properly handled. + # define ACE_CLASS_IS_NAMESPACE(CLASSNAME) \ + private: \ + CLASSNAME (void); \ + CLASSNAME (const CLASSNAME&); \ + friend class ace_dewarn_gplusplus +#endif /* ACE_LACKS_DEPRECATED_MACROS */ // ---------------------------------------------------------------- @@ -132,21 +134,23 @@ friend class ace_dewarn_gplusplus # endif /* ! ACE_HAS_BROKEN_NAMESPACES */ # endif /* !ACE_NESTED_CLASS */ -/** - * @name CORBA namespace macros. - * - * CORBA namespace macros. - * - * @deprecated These macros were formerly used by TAO but are now - * deprecated, and only remain to retain some backward - * compatibility. They will be removed in a future ACE - * release. - */ -//@{ -# define ACE_CORBA_1(NAME) CORBA::NAME -# define ACE_CORBA_2(TYPE, NAME) CORBA::TYPE::NAME -# define ACE_CORBA_3(TYPE, NAME) CORBA::TYPE::NAME -//@} +#if !defined (ACE_LACKS_DEPRECATED_MACROS) + /** + * @name CORBA namespace macros. + * + * CORBA namespace macros. + * + * @deprecated These macros were formerly used by TAO but are now + * deprecated, and only remain to retain some backward + * compatibility. They will be removed in a future ACE + * release. + */ + //@{ + # define ACE_CORBA_1(NAME) CORBA::NAME + # define ACE_CORBA_2(TYPE, NAME) CORBA::TYPE::NAME + # define ACE_CORBA_3(TYPE, NAME) CORBA::TYPE::NAME + //@} +#endif /* ACE_LACKS_DEPRECATED_MACROS */ // ---------------------------------------------------------------- |