Remove C4996 warning in VS2017

pull/1348/head
Wojciech Mamrak 7 years ago committed by GitHub
parent 3464f76e89
commit 57bb0bbbf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      googletest/include/gtest/internal/gtest-port.h

@ -642,6 +642,9 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
# if GTEST_OS_LINUX_ANDROID && defined(_STLPORT_MAJOR)
// STLport, provided with the Android NDK, has neither <tr1/tuple> or <tuple>.
# define GTEST_HAS_TR1_TUPLE 0
# elif defined(_MSC_VER) && (_MSC_VER >= 1910)
// Prevent `warning C4996: 'std::tr1': warning STL4002: The non-Standard std::tr1 namespace and TR1-only machinery are deprecated and will be REMOVED.`
# define GTEST_HAS_TR1_TUPLE 0
# else
// The user didn't tell us not to do it, so we assume it's OK.
# define GTEST_HAS_TR1_TUPLE 1

Loading…
Cancel
Save