swr: extern declaration for win32 intrinsics

This fixes compilation on msvc because llvm redefines these too
Closes #4417

Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9502>
This commit is contained in:
Michel Zou 2021-03-10 21:19:20 +01:00 committed by Marge Bot
parent 321dadf229
commit 31dbef02a0

View file

@ -106,6 +106,7 @@ static inline void AlignedFree(void* p)
#endif
#if !defined(_WIN64)
extern "C" {
inline unsigned char _BitScanForward64(unsigned long* Index, uint64_t Mask)
{
#ifdef __GNUC__
@ -131,6 +132,7 @@ inline unsigned char _BitScanReverse64(unsigned long* Index, uint64_t Mask)
#endif
return (Mask != 0);
}
}
#endif
#elif defined(__APPLE__) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__)