mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
refactor: simplify TR_CONSTEXPR20 macro (#7471)
This commit is contained in:
@@ -11,14 +11,7 @@
|
|||||||
|
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
#ifdef _MSVC_LANG
|
#if __cplusplus >= 202002L || _MSVC_LANG >= 202002L
|
||||||
#define TR_CPLUSPLUS _MSVC_LANG
|
|
||||||
#else
|
|
||||||
#define TR_CPLUSPLUS __cplusplus
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ((TR_CPLUSPLUS >= 202002L) && (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE > 9)) || \
|
|
||||||
(TR_CPLUSPLUS >= 201709L && TR_GCC_VERSION >= 1002)
|
|
||||||
#define TR_CONSTEXPR20 constexpr
|
#define TR_CONSTEXPR20 constexpr
|
||||||
#else
|
#else
|
||||||
#define TR_CONSTEXPR20
|
#define TR_CONSTEXPR20
|
||||||
|
|||||||
Reference in New Issue
Block a user