aboutsummaryrefslogtreecommitdiff
path: root/src/common/Define.h
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2021-06-20 16:52:24 +0200
committerShauren <shauren.trinity@gmail.com>2022-03-11 11:48:31 +0100
commit2bc1bbd91daab1da32caffb535da9ce39ff20725 (patch)
treef2b3e3285a2bf8062290b9e41cc063d285a964a7 /src/common/Define.h
parentd0fe16b78743bace4e620089787dfd3919a31a68 (diff)
Common/Misc: Replace old macros with modern C++ attributes (#26613)
(cherry picked from commit 5ae2a0f47d323fadcfebf44c7b6ec11a3f91c75a)
Diffstat (limited to 'src/common/Define.h')
-rw-r--r--src/common/Define.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/common/Define.h b/src/common/Define.h
index b43dfbf610c..2c348536f5c 100644
--- a/src/common/Define.h
+++ b/src/common/Define.h
@@ -60,16 +60,8 @@
#if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS
# define TRINITY_PATH_MAX 260
# define _USE_MATH_DEFINES
-# ifndef DECLSPEC_NORETURN
-# define DECLSPEC_NORETURN __declspec(noreturn)
-# endif //DECLSPEC_NORETURN
-# ifndef DECLSPEC_DEPRECATED
-# define DECLSPEC_DEPRECATED __declspec(deprecated)
-# endif //DECLSPEC_DEPRECATED
#else // TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS
# define TRINITY_PATH_MAX PATH_MAX
-# define DECLSPEC_NORETURN
-# define DECLSPEC_DEPRECATED
#endif // TRINITY_PLATFORM
#if !defined(COREDEBUG)
@@ -82,13 +74,9 @@
#endif //!COREDEBUG
#if TRINITY_COMPILER == TRINITY_COMPILER_GNU
-# define ATTR_NORETURN __attribute__((__noreturn__))
# define ATTR_PRINTF(F, V) __attribute__ ((__format__ (__printf__, F, V)))
-# define ATTR_DEPRECATED __attribute__((__deprecated__))
#else //TRINITY_COMPILER != TRINITY_COMPILER_GNU
-# define ATTR_NORETURN
# define ATTR_PRINTF(F, V)
-# define ATTR_DEPRECATED
#endif //TRINITY_COMPILER == TRINITY_COMPILER_GNU
#ifdef TRINITY_API_USE_DYNAMIC_LINKING