summaryrefslogtreecommitdiffstats
path: root/src/plugins/imageformats/jp2/qjp2handler.cpp
diff options
context:
space:
mode:
authorEvgeniy A. Dushistov <dushistov@mail.ru>2020-08-15 15:09:08 +0300
committerEvgeniy A. Dushistov <dushistov@mail.ru>2020-08-17 10:05:02 +0300
commit704868db61be1542c2d9e2b75ead00c45c56cc36 (patch)
tree3e5df4dcac84f29f0cb137a82f82ce1292abb391 /src/plugins/imageformats/jp2/qjp2handler.cpp
parent733873d3ae6ab8be4de5a56dec833bf4e024ce4a (diff)
fix build on Arch Linux
qtimageformats/src/plugins/imageformats/jp2/qjp2handler.cpp:844:41: error: no declaration of «pow» 844 | const double jasperRate = minRate + pow((double(quality) / double(maxQuality)), 2) * maxRate; Pick-to: 5.15 Change-Id: I085996c2db2251903b2a3e52e6e648831637c8f9 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/plugins/imageformats/jp2/qjp2handler.cpp')
-rw-r--r--src/plugins/imageformats/jp2/qjp2handler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/imageformats/jp2/qjp2handler.cpp b/src/plugins/imageformats/jp2/qjp2handler.cpp
index 4311d26..05c7bc1 100644
--- a/src/plugins/imageformats/jp2/qjp2handler.cpp
+++ b/src/plugins/imageformats/jp2/qjp2handler.cpp
@@ -45,6 +45,7 @@
#include "qcolor.h"
#include <jasper/jasper.h>
+#include <math.h> // for pow
QT_BEGIN_NAMESPACE