1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 23:23:54 +00:00

refactor: simplify TR_CONSTEXPR20 macro (#7471)

This commit is contained in:
Charles Kerr 2025-03-05 11:55:04 -06:00 committed by GitHub
parent 642043861d
commit ea2cac2335
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,14 +11,7 @@
// ---
#ifdef _MSVC_LANG
#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)
#if __cplusplus >= 202002L || _MSVC_LANG >= 202002L
#define TR_CONSTEXPR20 constexpr
#else
#define TR_CONSTEXPR20