From d4b62765a72e80025339b925a53b19624ae27431 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Thu, 7 Oct 2010 18:29:44 +0000 Subject: [PATCH] gtest: Fix warnings on MinGW. llvm-svn: 115945 --- llvm/utils/unittest/googletest/gtest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/utils/unittest/googletest/gtest.cc b/llvm/utils/unittest/googletest/gtest.cc index 6e291aee507f..51732afd4999 100644 --- a/llvm/utils/unittest/googletest/gtest.cc +++ b/llvm/utils/unittest/googletest/gtest.cc @@ -1964,8 +1964,8 @@ void ReportFailureInUnknownLocation(TestPartResult::Type result_type, } // namespace internal -#if GTEST_OS_WINDOWS -// We are on Windows. +#if GTEST_HAS_SEH +// We are on Windows with SEH. // Adds an "exception thrown" fatal failure to the current test. static void AddExceptionThrownFailure(DWORD exception_code, @@ -1978,7 +1978,7 @@ static void AddExceptionThrownFailure(DWORD exception_code, message.GetString()); } -#endif // GTEST_OS_WINDOWS +#endif // GTEST_HAS_SEH // Google Test requires all tests in the same test case to use the same test // fixture class. This function checks if the current test has the