endless-sky/endless-sky-gcc11.patch

25 lines
683 B
Diff

diff --git a/source/MapDetailPanel.cpp b/source/MapDetailPanel.cpp
index 79e023d..3786d90 100644
--- source/MapDetailPanel.cpp
+++ source/MapDetailPanel.cpp
@@ -44,6 +44,7 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
#include <set>
#include <utility>
#include <vector>
+#include <limits>
using namespace std;
diff --git a/source/PlayerInfo.cpp b/source/PlayerInfo.cpp
index 8630b98..003fa10 100644
--- source/PlayerInfo.cpp
+++ source/PlayerInfo.cpp
@@ -42,6 +42,7 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
#include <cmath>
#include <ctime>
#include <sstream>
+#include <limits>
using namespace std;