From e1ace703fbf4458d9e887ebf30050b1a0482a2d2 Mon Sep 17 00:00:00 2001 From: Gil Date: Wed, 11 Jul 2018 15:27:50 -0700 Subject: Fix Firestore source errors under VS2017 (#1515) * Project file updates from sync_project.rb * Fix misc compile errors under VS2017 * Fix util/hashing under VS2017 std::hash is not just a pass through in Microsoft's STL. * Disable unsafe code warnings in VS2017 ... where comparing against a reference implementation that has no easy safe equivalent. * Handle drive letters in paths on Windows --- .../core/test/firebase/firestore/immutable/sorted_map_test.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Firestore/core/test/firebase/firestore/immutable') diff --git a/Firestore/core/test/firebase/firestore/immutable/sorted_map_test.cc b/Firestore/core/test/firebase/firestore/immutable/sorted_map_test.cc index 75353d9..acd0642 100644 --- a/Firestore/core/test/firebase/firestore/immutable/sorted_map_test.cc +++ b/Firestore/core/test/firebase/firestore/immutable/sorted_map_test.cc @@ -14,6 +14,13 @@ * limitations under the License. */ +// Disable warnings in the MSVC standard library about the use of std::mismatch. +// There's no guaranteed safe way to use it in C++11 but the test verifies that +// our implementation matches the standard so we need to call it. +#if defined(_MSC_VER) +#define _SCL_SECURE_NO_WARNINGS 1 +#endif + #include "Firestore/core/src/firebase/firestore/immutable/sorted_map.h" #include -- cgit v1.2.3