From f52eed131aa26270e57b8d1f6c56f5c27f67639d Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 10 Feb 2022 14:50:11 -0500 Subject: [PATCH] fix msvc-clang errors --- desmume/src/libretro-common/include/math/fxp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/libretro-common/include/math/fxp.h b/desmume/src/libretro-common/include/math/fxp.h index f6717754f..6ecf8c9fe 100644 --- a/desmume/src/libretro-common/include/math/fxp.h +++ b/desmume/src/libretro-common/include/math/fxp.h @@ -42,7 +42,7 @@ static INLINE int64_t fx32_mul(const int32_t a, const int32_t b) static INLINE int32_t fx32_shiftdown(const int64_t a) { -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) return (int32_t)__ll_rshift(a, 12); #else return (int32_t)(a >> 12); @@ -51,7 +51,7 @@ static INLINE int32_t fx32_shiftdown(const int64_t a) static INLINE int64_t fx32_shiftup(const int32_t a) { -#ifdef _MSC_VER + #if defined(_MSC_VER) && !defined(__clang__) return __ll_lshift(a, 12); #else return ((int64_t)a) << 12;