diff --git a/0001-include-cstdint.patch b/0001-include-cstdint.patch new file mode 100644 index 0000000..0c86a0b --- /dev/null +++ b/0001-include-cstdint.patch @@ -0,0 +1,11 @@ +diff -ru zxing-cpp-1.2.0.orig/core/src/textcodec/JPTextEncoder.h zxing-cpp-1.2.0/core/src/textcodec/JPTextEncoder.h +--- zxing-cpp-1.2.0.orig/core/src/textcodec/JPTextEncoder.h 2023-01-23 20:12:39.682731359 +0000 ++++ zxing-cpp-1.2.0/core/src/textcodec/JPTextEncoder.h 2023-01-23 20:13:32.420223873 +0000 +@@ -61,6 +61,7 @@ + * SUCH DAMAGE. + */ + ++#include + #include + + class JPTextEncoder diff --git a/zxing-cpp.spec b/zxing-cpp.spec index b9ba30a..13dbc32 100644 --- a/zxing-cpp.spec +++ b/zxing-cpp.spec @@ -42,6 +42,8 @@ Patch1: %{url}/pull/269.patch Patch2: zxing-cpp-1.2.0-system-pybind11.patch # fix for recent libfmt Patch3: 0001-test-update-to-libfmt-v9.0.0.patch +# fix for gcc 13 +Patch4: 0001-include-cstdint.patch %description ZXing-C++ ("zebra crossing") is an open-source, multi-format 1D/2D barcode