Fixes to compile on Linux (GCC 10.3.1).

master
Karl Robillard 2022-07-03 15:00:06 -04:00 committed by Jeremy HU
parent ce9900e221
commit 914b6955f9
7 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#include <QPainter> #include <QPainter>
#include <QPainterPath>
#include "cut_face_preview.h" #include "cut_face_preview.h"
#include "theme.h" #include "theme.h"

View File

@ -1,6 +1,6 @@
#include <QGuiApplication> #include <QGuiApplication>
#include <QElapsedTimer> #include <QElapsedTimer>
#include <qDebug> #include <QDebug>
#include <QFile> #include <QFile>
#include <dust3d/base/ds3_file.h> #include <dust3d/base/ds3_file.h>
#include <dust3d/base/snapshot_xml.h> #include <dust3d/base/snapshot_xml.h>

View File

@ -20,6 +20,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
#include <algorithm> // std::reverse
#include <dust3d/base/vector2.h> #include <dust3d/base/vector2.h>
#include <dust3d/base/vector3.h> #include <dust3d/base/vector3.h>
#include <dust3d/base/cut_face.h> #include <dust3d/base/cut_face.h>

View File

@ -20,6 +20,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
#include <cstring>
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <rapidxml.hpp> #include <rapidxml.hpp>

View File

@ -23,6 +23,7 @@
#ifndef DUST3D_BASE_MATRIX4X4_H_ #ifndef DUST3D_BASE_MATRIX4X4_H_
#define DUST3D_BASE_MATRIX4X4_H_ #define DUST3D_BASE_MATRIX4X4_H_
#include <cstring>
#include <memory> #include <memory>
#include <dust3d/base/vector3.h> #include <dust3d/base/vector3.h>
#include <dust3d/base/quaternion.h> #include <dust3d/base/quaternion.h>

View File

@ -71,7 +71,7 @@ public:
return m_data[0]; return m_data[0];
} }
inline Quaternion &Quaternion::operator*=(const double &number) inline Quaternion &operator*=(const double &number)
{ {
m_data[0] *= number; m_data[0] *= number;
m_data[1] *= number; m_data[1] *= number;

View File

@ -38,6 +38,7 @@
#include <vector> #include <vector>
#include <string> #include <string>
#include <iostream>
#include <dust3d/base/math.h> #include <dust3d/base/math.h>
namespace dust3d namespace dust3d