diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2018-07-13 13:23:28 (GMT) |
---|---|---|
committer | Loo Rong Jie <loorongjie@gmail.com> | 2018-07-13 13:23:28 (GMT) |
commit | 3a8d744030e165dc7bebf70e4fbc44831059a79b (patch) | |
tree | 04b51c012803d2b7a22da62578a697ab09a2ca60 /googletest/src/gtest.cc | |
parent | b4d4438df9479675a632b2f11125e57133822ece (diff) | |
download | googletest-3a8d744030e165dc7bebf70e4fbc44831059a79b.zip googletest-3a8d744030e165dc7bebf70e4fbc44831059a79b.tar.gz googletest-3a8d744030e165dc7bebf70e4fbc44831059a79b.tar.bz2 |
Disable MSVC function deprecation when using Clang
Diffstat (limited to 'googletest/src/gtest.cc')
-rw-r--r-- | googletest/src/gtest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 9c25c99..9a69080 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -860,9 +860,9 @@ TimeInMillis GetTimeInMillis() { // (deprecated function) there. // TODO(kenton@google.com): Use GetTickCount()? Or use // SystemTimeToFileTime() - GTEST_DISABLE_MSC_WARNINGS_PUSH_(4996) + GTEST_DISABLE_MSC_DEPRECATED_PUSH_() _ftime64(&now); - GTEST_DISABLE_MSC_WARNINGS_POP_() + GTEST_DISABLE_MSC_DEPRECATED_POP_() return static_cast<TimeInMillis>(now.time) * 1000 + now.millitm; #elif GTEST_HAS_GETTIMEOFDAY_ |