feat(Core/Misc): replace all prefix preprocessor defines from CompilerDefs with AC_ (#2419)

This commit is contained in:
Kargatum
2019-11-15 23:27:31 +07:00
committed by GitHub
parent f9a8de9be7
commit a3206c56dc
12 changed files with 48 additions and 51 deletions

View File

@@ -13,11 +13,8 @@
#include <ace/Basic_Types.h>
#include <ace/ACE_export.h>
#include <ace/Default_Constants.h>
#include "CompilerDefs.h"
#if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
#define OS_WIN
#endif
@@ -33,7 +30,7 @@
# endif //ACE_BYTE_ORDER
#endif //TRINITY_ENDIAN
#if PLATFORM == PLATFORM_WINDOWS
#if AC_PLATFORM == AC_PLATFORM_WINDOWS
# define TRINITY_PATH_MAX MAX_PATH
# ifndef DECLSPEC_NORETURN
# define DECLSPEC_NORETURN __declspec(noreturn)
@@ -41,11 +38,11 @@
# ifndef DECLSPEC_DEPRECATED
# define DECLSPEC_DEPRECATED __declspec(deprecated)
# endif //DECLSPEC_DEPRECATED
#else //PLATFORM != PLATFORM_WINDOWS
#else //AC_PLATFORM != AC_PLATFORM_WINDOWS
# define TRINITY_PATH_MAX PATH_MAX
# define DECLSPEC_NORETURN
# define DECLSPEC_DEPRECATED
#endif //PLATFORM
#endif //AC_PLATFORM
#if !defined(COREDEBUG)
# define TRINITY_INLINE inline
@@ -56,15 +53,15 @@
# define TRINITY_INLINE
#endif //!COREDEBUG
#if COMPILER == COMPILER_GNU
#if AC_COMPILER == AC_COMPILER_GNU
# define ATTR_NORETURN __attribute__((noreturn))
# define ATTR_PRINTF(F, V) __attribute__ ((format (printf, F, V)))
# define ATTR_DEPRECATED __attribute__((deprecated))
#else //COMPILER != COMPILER_GNU
#else //AC_COMPILER != AC_COMPILER_GNU
# define ATTR_NORETURN
# define ATTR_PRINTF(F, V)
# define ATTR_DEPRECATED
#endif //COMPILER == COMPILER_GNU
#endif //AC_COMPILER == AC_COMPILER_GNU
#define UI64FMTD ACE_UINT64_FORMAT_SPECIFIER
#define UI64LIT(N) ACE_UINT64_LITERAL(N)