endless-sky/10952.patch
Gwyn Ciesla fdc0f4c57b 0.10.11
2025-01-27 11:48:40 -06:00

61 lines
1.8 KiB
Diff

From 4b0aa4e3e79476361dc8bb58365b90af2b9d1523 Mon Sep 17 00:00:00 2001
From: Daniel <101683475+Koranir@users.noreply.github.com>
Date: Mon, 27 Jan 2025 14:07:30 +1100
Subject: [PATCH] add missing imports
---
source/BoardingPanel.cpp | 1 +
source/PlayerInfo.cpp | 1 +
source/ShipInfoPanel.cpp | 1 +
source/ShipNameDialog.cpp | 2 ++
4 files changed, 5 insertions(+)
diff --git a/source/BoardingPanel.cpp b/source/BoardingPanel.cpp
index 79448fb81a7c..460e70eea501 100644
--- a/source/BoardingPanel.cpp
+++ b/source/BoardingPanel.cpp
@@ -39,6 +39,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "UI.h"
#include <algorithm>
+#include <cmath>
#include <utility>
using namespace std;
diff --git a/source/PlayerInfo.cpp b/source/PlayerInfo.cpp
index a3ecbf201d3a..9dc6c602fa58 100644
--- a/source/PlayerInfo.cpp
+++ b/source/PlayerInfo.cpp
@@ -49,6 +49,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include <algorithm>
#include <cassert>
#include <cmath>
+#include <cstring>
#include <ctime>
#include <functional>
#include <iterator>
diff --git a/source/ShipInfoPanel.cpp b/source/ShipInfoPanel.cpp
index 224e0bcf948f..b0e435a43ae9 100644
--- a/source/ShipInfoPanel.cpp
+++ b/source/ShipInfoPanel.cpp
@@ -44,6 +44,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "UI.h"
#include <algorithm>
+#include <cmath>
#include <ranges>
using namespace std;
diff --git a/source/ShipNameDialog.cpp b/source/ShipNameDialog.cpp
index 629e68012190..67cbb07e9b43 100644
--- a/source/ShipNameDialog.cpp
+++ b/source/ShipNameDialog.cpp
@@ -23,6 +23,8 @@ this program. If not, see <https://www.gnu.org/licenses/>.
#include "image/SpriteSet.h"
#include "shader/SpriteShader.h"
+#include <cmath>
+
using namespace std;