endless-sky-gl21: fix build with gcc>=12

This commit is contained in:
Duncaen 2022-10-10 20:54:30 +02:00
parent 4b49d571de
commit 714e7a2f40
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -0,0 +1,20 @@
--- a/source/MapDetailPanel.cpp
+++ b/source/MapDetailPanel.cpp
@@ -43,6 +43,7 @@
#include <set>
#include <utility>
#include <vector>
+#include <limits>
using namespace std;
--- a/source/PlayerInfo.cpp
+++ b/source/PlayerInfo.cpp
@@ -40,6 +40,7 @@
#include <algorithm>
#include <ctime>
#include <sstream>
+#include <limits>
using namespace std;