From 1d0c5eb3b32f31393e7626e6928c142b85a1bc92 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Fri, 11 Oct 2024 00:30:10 +0000 Subject: [PATCH] fix: now can be constexpr --- src/dpp/voice/enabled/xchacha20.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/dpp/voice/enabled/xchacha20.cpp b/src/dpp/voice/enabled/xchacha20.cpp index 52948b0aba..cff2cc1eb9 100644 --- a/src/dpp/voice/enabled/xchacha20.cpp +++ b/src/dpp/voice/enabled/xchacha20.cpp @@ -28,9 +28,6 @@ #include #include #include "enabled.h" -#if _MSC_VER - #include -#endif /** * @brief ChaCha static constant @@ -58,11 +55,7 @@ constexpr size_t CHACHA_NONCE_SIZE = 12; * @return shifted value */ constexpr uint32_t rotl_u32(uint32_t value, int shift) { -#if _MSC_VER - return _rotl(value, shift); -#else return (value << shift) | (value >> ((-shift) & 31)); -#endif } /**