From 4f8e59a3f8613c09a95a98feb5d955b5901494ad Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 29 Apr 2019 07:06:06 +0200 Subject: [PATCH] (UWP) Rewind should now work - issues with the BitScanReverse codepath for compat_ctz on UWP/WinRT - have not figured out a solution yet, so just make it default to slowest ctz codepath for now --- libretro-common/include/compat/intrinsics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/include/compat/intrinsics.h b/libretro-common/include/compat/intrinsics.h index f9e39dd97b..cb1f540daa 100644 --- a/libretro-common/include/compat/intrinsics.h +++ b/libretro-common/include/compat/intrinsics.h @@ -61,7 +61,7 @@ static INLINE int compat_ctz(unsigned x) { #if defined(__GNUC__) && !defined(RARCH_CONSOLE) return __builtin_ctz(x); -#elif _MSC_VER >= 1400 && !defined(_XBOX) +#elif _MSC_VER >= 1400 && !defined(_XBOX) && !defined(__WINRT__) unsigned long r = 0; _BitScanReverse((unsigned long*)&r, x); return (int)r;