mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-10 17:14:10 +00:00
rapidhash: Fix compilation as C++14 with GCC 5.5
Enable `inline constexpr` markup only for specific compilers to avoid `error: call to non-constexpr function ...`.
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
# ifndef RAPIDHASH_INLINE
|
||||
# define RAPIDHASH_INLINE RAPIDHASH_ALWAYS_INLINE
|
||||
# endif
|
||||
# if __cplusplus >= 201402L && !defined(_MSC_VER)
|
||||
# if __cplusplus >= 201402L && ((defined(__GNUC__) && __GNUC__ > 5) || defined(__INTEL_COMPILER) || defined(__clang__))
|
||||
# define RAPIDHASH_INLINE_CONSTEXPR RAPIDHASH_ALWAYS_INLINE constexpr
|
||||
# else
|
||||
# define RAPIDHASH_INLINE_CONSTEXPR RAPIDHASH_ALWAYS_INLINE
|
||||
|
||||
Reference in New Issue
Block a user