diff --git a/source/row_win.cc b/source/row_win.cc index 2e9eda230..6713692a1 100644 --- a/source/row_win.cc +++ b/source/row_win.cc @@ -23,7 +23,12 @@ extern "C" { // This module is for Visual C. #if !defined(LIBYUV_DISABLE_X86) && (defined(_M_IX86) || defined(_M_X64)) && \ - defined(_MSC_VER) && !defined(__clang__) + defined(_MSC_VER) + +// ClangCL use posix source instead. +#if defined(__clang__) +#include "source/row_posix.cc" +#else struct YuvConstants { lvec8 kUVToB; // 0 @@ -6415,6 +6420,7 @@ void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, #endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3 #endif // defined(_M_X64) +#endif // defined(__clang__) #endif // !defined(LIBYUV_DISABLE_X86) && (defined(_M_IX86) ... #ifdef __cplusplus