[vlc-commits] [Git][videolan/vlc][master] qt: fix cross-compilation issue by including cmath

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Nov 28 16:13:49 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
6aab42ab by Yann Lochet at 2022-11-28T15:45:39+00:00
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.

- - - - -


2 changed files:

- modules/gui/qt/style/gtkthemeprovider/gtk_util.cpp
- modules/gui/qt/util/covergenerator.cpp


Changes:

=====================================
modules/gui/qt/style/gtkthemeprovider/gtk_util.cpp
=====================================
@@ -30,6 +30,7 @@
 #include <stddef.h>
 
 #include <memory>
+#include <cmath>
 
 namespace gtk {
 


=====================================
modules/gui/qt/util/covergenerator.cpp
=====================================
@@ -26,6 +26,8 @@
 // MediaLibrary includes
 #include "medialibrary/mlhelper.hpp"
 
+#include <cmath>
+
 // Qt includes
 #include <QDir>
 #include <QImageReader>



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6aab42ab61e5bb95bf36f1ad65aff35b711b0fba

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6aab42ab61e5bb95bf36f1ad65aff35b711b0fba
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list