Skip to content

Commit

Permalink
fix build on Arch Linux
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dushistov committed Aug 17, 2020
1 parent 733873d commit 704868d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/imageformats/jp2/qjp2handler.cpp
Expand Up @@ -45,6 +45,7 @@
#include "qcolor.h"

#include <jasper/jasper.h>
#include <math.h> // for pow

QT_BEGIN_NAMESPACE

Expand Down

1 comment on commit 704868d

@hexvalid
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.