From 2c44965e8dc51cd1fcf4b75017e0c7a7eca0f327 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Sat, 2 May 2015 00:39:29 +0000 Subject: [PATCH] make row_win windows code built with clangcl include the _posix source code. depot_tools excludes these source files now, so they need to be manually included. BUG=435 TESTED=clangcl local build on windows R=tpsiaki@google.com Review URL: https://webrtc-codereview.appspot.com/49879004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1395 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- source/row_win.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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