summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rw-r--r--external/zxing/UnpackedTarball_zxing.mk1
-rw-r--r--external/zxing/msvc-lambdacapture.patch.011
2 files changed, 12 insertions, 0 deletions
diff --git a/external/zxing/UnpackedTarball_zxing.mk b/external/zxing/UnpackedTarball_zxing.mk
index 0d81d13f6411..ac0aff061d72 100644
--- a/external/zxing/UnpackedTarball_zxing.mk
+++ b/external/zxing/UnpackedTarball_zxing.mk
@@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,zxing, \
external/zxing/assume.__cpp_lib_string_view.patch.0 \
external/zxing/android_include.patch.0 \
external/zxing/missing-include.patch.0 \
+ external/zxing/msvc-lambdacapture.patch.0 \
))
# vim: set noet sw=4 ts=4:
diff --git a/external/zxing/msvc-lambdacapture.patch.0 b/external/zxing/msvc-lambdacapture.patch.0
new file mode 100644
index 000000000000..390d1cc65502
--- /dev/null
+++ b/external/zxing/msvc-lambdacapture.patch.0
@@ -0,0 +1,11 @@
+--- core/src/qrcode/QRDetector.cpp
++++ core/src/qrcode/QRDetector.cpp
+@@ -418,7 +418,7 @@
+
+ auto srcQuad = Rectangle(7, 7, 0.5);
+
+- constexpr PointI FORMAT_INFO_COORDS[] = {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 8}, {5, 8}, {6, 8}, {7, 8}, {8, 8},
++ static constexpr PointI FORMAT_INFO_COORDS[] = {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 8}, {5, 8}, {6, 8}, {7, 8}, {8, 8},
+ {8, 7}, {8, 6}, {8, 5}, {8, 4}, {8, 3}, {8, 2}, {8, 1}, {8, 0}};
+
+ FormatInformation bestFI;