void-packages/srcpkgs/gosu/patches/stdexcept.patch
Đoàn Trần Công Danh 465c515ab1 gosu: fix build with gcc-10
2021-01-19 20:40:36 +07:00

120 lines
2.7 KiB
Diff

diff --git src/DrawOpQueue.hpp src/DrawOpQueue.hpp
index 3a463ce..b06515f 100644
--- src/DrawOpQueue.hpp
+++ src/DrawOpQueue.hpp
@@ -10,6 +10,7 @@
#include <functional>
#include <map>
#include <vector>
+#include <stdexcept>
class Gosu::DrawOpQueue
{
diff --git src/Font.cpp src/Font.cpp
index b2c0152..5bcacad 100644
--- src/Font.cpp
+++ src/Font.cpp
@@ -10,6 +10,7 @@
#include <array>
#include <cassert>
#include <map>
+#include <stdexcept>
using namespace std;
static const int FONT_RENDER_SCALE = 2;
diff --git src/Graphics.cpp src/Graphics.cpp
index 0028269..db03fb2 100644
--- src/Graphics.cpp
+++ src/Graphics.cpp
@@ -13,6 +13,7 @@
#include <algorithm>
#include <functional>
#include <memory>
+#include <stdexcept>
using namespace std;
namespace Gosu
diff --git src/LargeImageData.cpp src/LargeImageData.cpp
index c0cbe0d..568a126 100644
--- src/LargeImageData.cpp
+++ src/LargeImageData.cpp
@@ -3,6 +3,7 @@
#include <Gosu/Graphics.hpp>
#include <Gosu/Math.hpp>
#include <cmath>
+#include <stdexcept>
using namespace std;
Gosu::LargeImageData::LargeImageData(const Bitmap& source, int tile_width, int tile_height,
diff --git src/OffScreenTarget.cpp src/OffScreenTarget.cpp
index 7044777..0ec7625 100644
--- src/OffScreenTarget.cpp
+++ src/OffScreenTarget.cpp
@@ -5,6 +5,7 @@
#ifndef GOSU_IS_IPHONE
#include <SDL.h>
#endif
+#include <stdexcept>
using namespace std;
#ifdef GOSU_IS_OPENGLES
diff --git src/RubyGosu.cxx src/RubyGosu.cxx
index 1825875..ae66a71 100644
--- src/RubyGosu.cxx
+++ src/RubyGosu.cxx
@@ -17,6 +17,7 @@
#ifdef __cplusplus
+#include <stdexcept>
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper {
struct SwigMovePointer {
diff --git src/SndFile.hpp src/SndFile.hpp
index 11e06c1..df17785 100644
--- src/SndFile.hpp
+++ src/SndFile.hpp
@@ -9,6 +9,7 @@
#define NOMINMAX
#include <windows.h>
#endif
+#include <stdexcept>
namespace Gosu
{
diff --git src/Text.cpp src/Text.cpp
index 3641fad..f874b03 100644
--- src/Text.cpp
+++ src/Text.cpp
@@ -7,6 +7,7 @@
#include <cmath>
#include <algorithm>
#include <vector>
+#include <stdexcept>
using namespace std;
double Gosu::text_width(const u32string& text,
diff --git src/TrueTypeFont.cpp src/TrueTypeFont.cpp
index e891015..40ed6b6 100644
--- src/TrueTypeFont.cpp
+++ src/TrueTypeFont.cpp
@@ -17,6 +17,7 @@
#include <algorithm>
#include <map>
+#include <stdexcept>
using namespace std;
struct Gosu::TrueTypeFont::Impl
diff --git src/WindowUIKit.cpp src/WindowUIKit.cpp
index fc5060c..14ea73f 100644
--- src/WindowUIKit.cpp
+++ src/WindowUIKit.cpp
@@ -3,6 +3,7 @@
#include "GosuViewController.hpp"
#include <Gosu/Gosu.hpp>
+#include <stdexcept>
using namespace std;