From 4691321663e437c3e15c9910529c6a4cafecc16b Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Wed, 26 Oct 2022 08:14:21 -0700 Subject: [PATCH] Enforce Visual Studio 2017 (MSVC++ 15.0) minumum PiperOrigin-RevId: 483972593 Change-Id: I5358871cdf825bbfae65bf9f5872c4fd56005fb7 --- absl/base/policy_checks.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/absl/base/policy_checks.h b/absl/base/policy_checks.h index d13073c8..2626fb6a 100644 --- a/absl/base/policy_checks.h +++ b/absl/base/policy_checks.h @@ -44,10 +44,10 @@ // Toolchain Check // ----------------------------------------------------------------------------- -// We support MSVC++ 14.0 update 2 and later. +// We support Visual Studio 2017 (MSVC++ 15.0) and later. // This minimum will go up. -#if defined(_MSC_FULL_VER) && _MSC_FULL_VER < 190023918 && !defined(__clang__) -#error "This package requires Visual Studio 2015 Update 2 or higher." +#if defined(_MSC_VER) && _MSC_VER < 1910 && !defined(__clang__) +#error "This package requires Visual Studio 2017 (MSVC++ 15.0) or higher." #endif // We support gcc 5 and later.