summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy A. Dushistov <dushistov@mail.ru>2020-08-15 15:09:08 +0300
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-24 14:48:01 +0100
commit1ad9d3142821ef0d00c2f1317e64e67fad2e5bc8 (patch)
treebc1bdf2ba61c0dcf675c4371b2b8dca500e9305a
parent51142316126081f5ba46be05016bcdc85dad6f78 (diff)
downloadqtimageformats-1ad9d3142821ef0d00c2f1317e64e67fad2e5bc8.tar.gz
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; Change-Id: I085996c2db2251903b2a3e52e6e648831637c8f9 (cherry picked from commit 704868db61be1542c2d9e2b75ead00c45c56cc36) Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-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 17373fd..e4800ac 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