diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-09-18 14:44:31 (GMT) |
---|---|---|
committer | mabrand <mabrand@mabrand.nl> | 2020-09-18 15:10:09 (GMT) |
commit | 1a1123394a010a3f7da577ae171c33a3ec44f794 (patch) | |
tree | 241386150f5fe8044f77acd04883d74a32ed7033 | |
parent | 79a41abceacbc29ec646a9fe6b6a33f392262e5c (diff) | |
download | mxe-1a1123394a010a3f7da577ae171c33a3ec44f794.zip mxe-1a1123394a010a3f7da577ae171c33a3ec44f794.tar.gz mxe-1a1123394a010a3f7da577ae171c33a3ec44f794.tar.bz2 |
plugins/examples/qt5-freeze: Fix qtimageformats build (fixes #2563).
Add missing <math.h> #include. Without this the build fails with:
[...]qjp2handler.cpp:853:86: error: 'pow' was not declared in this scope
Taken from bd76e1080ef7ddbbfe683d6371629aecb02bc9bd.
-rw-r--r-- | plugins/examples/qt5-freeze/qtimageformats-2.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/examples/qt5-freeze/qtimageformats-2.patch b/plugins/examples/qt5-freeze/qtimageformats-2.patch new file mode 100644 index 0000000..4bce01d --- /dev/null +++ b/plugins/examples/qt5-freeze/qtimageformats-2.patch @@ -0,0 +1,23 @@ +This file is part of MXE. See LICENSE.md for licensing information. + +Contains ad hoc patches for cross building. + +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Mark Brand <mabrand@mabrand.nl> +Date: Wed, 29 Jul 2020 01:47:16 +0200 +Subject: [PATCH 1/1] add missing header for pow() + + +diff --git a/src/plugins/imageformats/jp2/qjp2handler.cpp b/src/plugins/imageformats/jp2/qjp2handler.cpp +index 1111111..2222222 100644 +--- a/src/plugins/imageformats/jp2/qjp2handler.cpp ++++ b/src/plugins/imageformats/jp2/qjp2handler.cpp +@@ -46,6 +46,8 @@ + + #include <jasper/jasper.h> + ++#include <math.h> ++ + QT_BEGIN_NAMESPACE + + class QJp2HandlerPrivate |