Skip to content

Commit

Permalink
Merge pull request #2232 from jwillemsen/jwi-acedrepcated
Browse files Browse the repository at this point in the history
Define ACE_DEPRECATED as [[deprecated]]
  • Loading branch information
jwillemsen committed Apr 30, 2024
2 parents 42c460d + e8fa636 commit 4fa3d39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions ACE/ace/config-g++-common.h
Expand Up @@ -60,10 +60,6 @@
#define ACE_HAS_GCC_DESTRUCTOR_ATTRIBUTE 1
#endif

#if !defined (ACE_HAS_GCC_DEPRECATED_ATTRIBUTE)
#define ACE_HAS_GCC_DEPRECATED_ATTRIBUTE 1
#endif

#if !defined (ACE_HAS_GCC_FORMAT_ATTRIBUTE)
#define ACE_HAS_GCC_FORMAT_ATTRIBUTE 1
#endif
Expand All @@ -76,10 +72,6 @@
# define ACE_GCC_DESTRUCTOR_ATTRIBUTE __attribute__ ((destructor))
#endif

#if (ACE_HAS_GCC_DEPRECATED_ATTRIBUTE == 1)
#define ACE_DEPRECATED __attribute__ ((deprecated))
#endif

#if (ACE_HAS_GCC_FORMAT_ATTRIBUTE == 1)
# define ACE_GCC_FORMAT_ATTRIBUTE(TYPE, STR_INDEX, FIRST_INDEX) \
__attribute__ ((format (TYPE, STR_INDEX, FIRST_INDEX)))
Expand Down
2 changes: 1 addition & 1 deletion ACE/ace/config-macros.h
Expand Up @@ -680,7 +680,7 @@ extern "C" u_long CLS##_Export _get_dll_unload_policy () \
#endif

#ifndef ACE_DEPRECATED
# define ACE_DEPRECATED
# define ACE_DEPRECATED [[deprecated]]
#endif

#ifndef ACE_HAS_REACTOR_NOTIFICATION_QUEUE
Expand Down

0 comments on commit 4fa3d39

Please sign in to comment.