From d8680893ecfcffd952c7a5d0dc1878d1c486a4e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 28 Mar 2018 14:10:45 +0300 Subject: [PATCH] Fix building with clang targeting x86_32 mingw In these cases, CLANG_HAS_AVX2 is defined, but _MSC_VER isn't. The corresponding codepaths are in source/row_win.cc, and the whole file is guarded with an defined(_MSC_VER). Change-Id: Idf0cfced3a0ef28c07b1393fe605a904420fd50f Reviewed-on: https://chromium-review.googlesource.com/983592 Reviewed-by: Frank Barchard Commit-Queue: Frank Barchard --- include/libyuv/row.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libyuv/row.h b/include/libyuv/row.h index 9832f1b53..5fad06b7c 100644 --- a/include/libyuv/row.h +++ b/include/libyuv/row.h @@ -241,7 +241,7 @@ extern "C" { // The following are available for AVX2 Visual C and clangcl 32 bit: // TODO(fbarchard): Port to gcc. -#if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && \ +#if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) && defined(_MSC_VER) && \ (defined(VISUALC_HAS_AVX2) || defined(CLANG_HAS_AVX2)) #define HAS_ARGB1555TOARGBROW_AVX2 #define HAS_ARGB4444TOARGBROW_AVX2