From 84c412cb8392d306ab87fc06855677612f9938a6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 20 Jul 2020 14:03:13 +0200 Subject: external/skia: Deprecated std::result_of_t has been removed from C++20 ...and is no longer provided at least by VS 2019 16.6.4 when using --with-latest-c++ Change-Id: I4655e2a2b3c4c9411ee6f5b9b42137e1bd7ac3fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99046 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- external/skia/UnpackedTarball_skia.mk | 1 + external/skia/c++20.patch.0 | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 external/skia/c++20.patch.0 (limited to 'external') diff --git a/external/skia/UnpackedTarball_skia.mk b/external/skia/UnpackedTarball_skia.mk index 5caeff270e0c..8ea1fa992a99 100644 --- a/external/skia/UnpackedTarball_skia.mk +++ b/external/skia/UnpackedTarball_skia.mk @@ -39,6 +39,7 @@ skia_patches := \ windows-raster-surface-no-copies.patch.1 \ fix-windows-dwrite.patch.1 \ public-make-from-backend-texture.patch.1 \ + c++20.patch.0 \ $(eval $(call gb_UnpackedTarball_set_patchlevel,skia,1)) diff --git a/external/skia/c++20.patch.0 b/external/skia/c++20.patch.0 new file mode 100644 index 000000000000..71b384fcc2da --- /dev/null +++ b/external/skia/c++20.patch.0 @@ -0,0 +1,17 @@ +--- include/private/SkTemplates.h ++++ include/private/SkTemplates.h +@@ -453,12 +453,12 @@ + + template + constexpr auto SkMakeArrayFromIndexSequence(C c, std::index_sequence) +--> std::array, sizeof...(Is)> { ++-> std::array, sizeof...(Is)> { + return {{ c(Is)... }}; + } + + template constexpr auto SkMakeArray(C c) +--> std::array, N> { ++-> std::array, N> { + return SkMakeArrayFromIndexSequence(c, std::make_index_sequence{}); + } + -- cgit