From ee217ceb67f09e7f74bc412fa4e223ae4ba90b9e Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Wed, 16 Aug 2023 09:20:19 -0700 Subject: [PATCH] Fix MediaPipe build in Chromium. When building Chromium with Clang on Windows, it needs the template specializations to be declared as well. PiperOrigin-RevId: 557508703 --- mediapipe/framework/legacy_calculator_support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediapipe/framework/legacy_calculator_support.h b/mediapipe/framework/legacy_calculator_support.h index 9378d14f0..6ec0d953b 100644 --- a/mediapipe/framework/legacy_calculator_support.h +++ b/mediapipe/framework/legacy_calculator_support.h @@ -66,7 +66,7 @@ class LegacyCalculatorSupport { }; }; -#if !defined(_MSC_VER) +#if !defined(_MSC_VER) || defined(__clang__) // We only declare this variable for two specializations of the template because // it is only meant to be used for these two types. // Note that, since these variables are members of specific template