You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-strategy/colobot/files/colobot-0.1.12-includes.patch

46 lines
1.3 KiB

From 2cfab017938e1cf44f633647eec2ccc2ed1da38b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Thu, 14 May 2020 10:35:01 +0200
Subject: [PATCH] Fix missing <limits> include
Add missing <limits> include for std::numeric_limits. This fixes
build failure after boost stopped implicitly including it for us.
---
src/script/script.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/script/script.h b/src/script/script.h
index bc64dc232..dd4e02ff4 100644
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -27,6 +27,7 @@
#include "CBot/CBot.h"
#include <memory>
+#include <limits>
#include <string>
#include <boost/optional.hpp>
From fc2bd68876ac6302dbc8e91e8ffa33592db14b21 Mon Sep 17 00:00:00 2001
From: suve <veg@svgames.pl>
Date: Sun, 9 Feb 2020 00:36:05 +0100
Subject: [PATCH] Fix missing std includes
---
src/CBot/CBotInstr/CBotExprLitString.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/CBot/CBotInstr/CBotExprLitString.cpp b/src/CBot/CBotInstr/CBotExprLitString.cpp
index fc2541624..69e42d607 100644
--- a/src/CBot/CBotInstr/CBotExprLitString.cpp
+++ b/src/CBot/CBotInstr/CBotExprLitString.cpp
@@ -24,6 +24,8 @@
#include "CBot/CBotVar/CBotVar.h"
+#include <stdexcept>
+
namespace CBot
{