From 5ae2a0f47d323fadcfebf44c7b6ec11a3f91c75a Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Sun, 20 Jun 2021 16:52:24 +0200 Subject: Common/Misc: Replace old macros with modern C++ attributes (#26613) --- src/common/Define.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/common/Define.h') diff --git a/src/common/Define.h b/src/common/Define.h index 74ac26a0c00..d1780b33d05 100644 --- a/src/common/Define.h +++ b/src/common/Define.h @@ -57,16 +57,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) @@ -79,13 +71,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 -- cgit v1.2.3