From 914b6955f996ef83aef42bce59a4935d194031ed Mon Sep 17 00:00:00 2001 From: Karl Robillard Date: Sun, 3 Jul 2022 15:00:06 -0400 Subject: [PATCH] Fixes to compile on Linux (GCC 10.3.1). --- application/sources/cut_face_preview.cc | 1 + application/sources/material_previews_generator.cc | 2 +- dust3d/base/cut_face.cc | 1 + dust3d/base/ds3_file.cc | 1 + dust3d/base/matrix4x4.h | 1 + dust3d/base/quaternion.h | 2 +- dust3d/base/vector2.h | 1 + 7 files changed, 7 insertions(+), 2 deletions(-) diff --git a/application/sources/cut_face_preview.cc b/application/sources/cut_face_preview.cc index 25ded7a4..7df79464 100644 --- a/application/sources/cut_face_preview.cc +++ b/application/sources/cut_face_preview.cc @@ -1,4 +1,5 @@ #include +#include #include "cut_face_preview.h" #include "theme.h" diff --git a/application/sources/material_previews_generator.cc b/application/sources/material_previews_generator.cc index 2231193a..dd1949fe 100644 --- a/application/sources/material_previews_generator.cc +++ b/application/sources/material_previews_generator.cc @@ -1,6 +1,6 @@ #include #include -#include +#include #include #include #include diff --git a/dust3d/base/cut_face.cc b/dust3d/base/cut_face.cc index 4b4e230d..db5c5787 100644 --- a/dust3d/base/cut_face.cc +++ b/dust3d/base/cut_face.cc @@ -20,6 +20,7 @@ * SOFTWARE. */ +#include // std::reverse #include #include #include diff --git a/dust3d/base/ds3_file.cc b/dust3d/base/ds3_file.cc index ea7d6d03..eec89e80 100644 --- a/dust3d/base/ds3_file.cc +++ b/dust3d/base/ds3_file.cc @@ -20,6 +20,7 @@ * SOFTWARE. */ +#include #include #include #include diff --git a/dust3d/base/matrix4x4.h b/dust3d/base/matrix4x4.h index 894ecd33..1029de06 100644 --- a/dust3d/base/matrix4x4.h +++ b/dust3d/base/matrix4x4.h @@ -23,6 +23,7 @@ #ifndef DUST3D_BASE_MATRIX4X4_H_ #define DUST3D_BASE_MATRIX4X4_H_ +#include #include #include #include diff --git a/dust3d/base/quaternion.h b/dust3d/base/quaternion.h index e8f42799..30c5e68d 100644 --- a/dust3d/base/quaternion.h +++ b/dust3d/base/quaternion.h @@ -71,7 +71,7 @@ public: return m_data[0]; } - inline Quaternion &Quaternion::operator*=(const double &number) + inline Quaternion &operator*=(const double &number) { m_data[0] *= number; m_data[1] *= number; diff --git a/dust3d/base/vector2.h b/dust3d/base/vector2.h index 2d1d0ef4..83933979 100644 --- a/dust3d/base/vector2.h +++ b/dust3d/base/vector2.h @@ -38,6 +38,7 @@ #include #include +#include #include namespace dust3d