diff options
Diffstat (limited to 'src/gmock-printers.cc')
-rw-r--r-- | src/gmock-printers.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gmock-printers.cc b/src/gmock-printers.cc index 922a7b2d..0473dba1 100644 --- a/src/gmock-printers.cc +++ b/src/gmock-printers.cc @@ -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. |