summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rw-r--r--external/boost/UnpackedTarball_boost.mk2
-rw-r--r--external/boost/msvc2017.patch.039
2 files changed, 41 insertions, 0 deletions
diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk
index 0b6b5eb6f956..f23fe6553529 100644
--- a/external/boost/UnpackedTarball_boost.mk
+++ b/external/boost/UnpackedTarball_boost.mk
@@ -40,6 +40,8 @@ boost_patches += windows-no-utf8-locales.patch.0
boost_patches += gcc9.patch.0
+boost_patches += msvc2017.patch.0
+
$(eval $(call gb_UnpackedTarball_UnpackedTarball,boost))
$(eval $(call gb_UnpackedTarball_set_tarball,boost,$(BOOST_TARBALL)))
diff --git a/external/boost/msvc2017.patch.0 b/external/boost/msvc2017.patch.0
new file mode 100644
index 000000000000..a032557542c9
--- /dev/null
+++ b/external/boost/msvc2017.patch.0
@@ -0,0 +1,39 @@
+--- boost/circular_buffer/details.hpp
++++ boost/circular_buffer/details.hpp
+@@ -216,12 +216,19 @@
+ // Helper types
+
+ //! Base iterator.
++#if defined _MSC_VER && !defined __clang__ && _MSC_VER == 1914
++#pragma warning(push)
++#pragma warning(disable: 4996)
++#endif
+ typedef std::iterator<
+ std::random_access_iterator_tag,
+ typename Traits::value_type,
+ typename Traits::difference_type,
+ typename Traits::pointer,
+ typename Traits::reference> base_iterator;
++#if defined _MSC_VER && !defined __clang__ && _MSC_VER == 1914
++#pragma warning(pop)
++#endif
+
+ //! Non-const iterator.
+ typedef iterator<Buff, typename Traits::nonconst_self> nonconst_self;
+--- boost/iterator.hpp
++++ boost/iterator.hpp
+@@ -13,7 +13,14 @@
+ namespace boost
+ {
+
++#if defined _MSC_VER && !defined __clang__ && _MSC_VER == 1914
++#pragma warning(push)
++#pragma warning(disable: 4996)
++#endif
+ using std::iterator;
++#if defined _MSC_VER && !defined __clang__ && _MSC_VER == 1914
++#pragma warning(pop)
++#endif
+
+ } // namespace boost
+