Adds mutable_impl() and impl() to PolymorphicMatcher (by Zhanyong Wan); Enables gMock to compile with VC 7.1 (by Vlad Losev).

This commit is contained in:
zhanyong.wan
2009-08-31 23:51:23 +00:00
parent 0ea67f88ae
commit 2b43a9ecd1
5 changed files with 65 additions and 50 deletions

View File

@@ -55,10 +55,12 @@ namespace {
using ::std::ostream;
#ifdef _WIN32_WCE
#ifdef _WIN32_WCE // Windows CE does not define _snprintf_s.
#define snprintf _snprintf
#elif GTEST_OS_WINDOWS
#elif _MSC_VER >= 1400 // VC 8.0 and later deprecate snprintf and _snprintf.
#define snprintf _snprintf_s
#elif _MSC_VER
#define snprintf _snprintf
#endif
// Prints a segment of bytes in the given object.