Adjust prefix path computations for base::Location

Deal with MinGW builds.
---
 base/location.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/location.cc b/base/location.cc
index b38ec16beabb..44e3334dd02c 100644
--- a/base/location.cc
+++ b/base/location.cc
@@ -31,7 +31,7 @@ constexpr size_t StrLen(const char* str) {
 constexpr size_t StrippedFilePathPrefixLength() {
   constexpr char path[] = __FILE__;
   // Only keep the file path starting from the src directory.
-#if defined(__clang__) && defined(_MSC_VER)
+#if defined(__clang__) && defined(_WIN32)
   constexpr char stripped[] = "base\\location.cc";
 #else
   constexpr char stripped[] = "base/location.cc";
@@ -63,7 +63,7 @@ constexpr bool StrEndsWith(const char* name,
   return true;
 }
 
-#if defined(__clang__) && defined(_MSC_VER)
+#if defined(__clang__) && defined(_WIN32)
 static_assert(StrEndsWith(__FILE__, kStrippedPrefixLength, "base\\location.cc"),
               "The file name does not match the expected prefix format.");
 #else
-- 
2.49.0.windows.1

