7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
120 lines
2.7 KiB
Diff
120 lines
2.7 KiB
Diff
diff --git src/DrawOpQueue.hpp src/DrawOpQueue.hpp
|
|
index 3a463ce..b06515f 100644
|
|
--- a/src/DrawOpQueue.hpp
|
|
+++ b/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
|
|
--- a/src/Font.cpp
|
|
+++ b/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
|
|
--- a/src/Graphics.cpp
|
|
+++ b/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
|
|
--- a/src/LargeImageData.cpp
|
|
+++ b/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
|
|
--- a/src/OffScreenTarget.cpp
|
|
+++ b/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
|
|
--- a/src/RubyGosu.cxx
|
|
+++ b/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
|
|
--- a/src/SndFile.hpp
|
|
+++ b/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
|
|
--- a/src/Text.cpp
|
|
+++ b/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
|
|
--- a/src/TrueTypeFont.cpp
|
|
+++ b/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
|
|
--- a/src/WindowUIKit.cpp
|
|
+++ b/src/WindowUIKit.cpp
|
|
@@ -3,6 +3,7 @@
|
|
|
|
#include "GosuViewController.hpp"
|
|
#include <Gosu/Gosu.hpp>
|
|
+#include <stdexcept>
|
|
|
|
using namespace std;
|
|
|