Browse Source

qt: fix cross-compilation issue by including cmath

std::round in gtk_util.cpp and std::ceil in covergenerator.cpp are not
found when cross-compiling if cmath is not included.
pull/141/head
Yann Lochet 4 years ago
committed by Steve Lhomme
parent
commit
6aab42ab61
  1. 1
      modules/gui/qt/style/gtkthemeprovider/gtk_util.cpp
  2. 2
      modules/gui/qt/util/covergenerator.cpp

1
modules/gui/qt/style/gtkthemeprovider/gtk_util.cpp

@ -30,6 +30,7 @@
#include <stddef.h>
#include <memory>
#include <cmath>
namespace gtk {

2
modules/gui/qt/util/covergenerator.cpp

@ -26,6 +26,8 @@
// MediaLibrary includes
#include "medialibrary/mlhelper.hpp"
#include <cmath>
// Qt includes
#include <QDir>
#include <QImageReader>

Loading…
Cancel
Save