diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2012-08-10 11:39:24 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-10 11:39:24 -0500 |
commit | 918b8900197fc3b3fb82874bea8ffc875f6f73fb (patch) | |
tree | e749aefdc7d165f42b9214cec82650c56bd923ff /games/megaglest/gcc-4.7.patch | |
parent | 61faa4269316cf56e6ece673a7324d1cb93c4c9f (diff) | |
download | slackbuilds-918b8900197fc3b3fb82874bea8ffc875f6f73fb.tar.gz |
games/megaglest: Included patch for gcc47
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/megaglest/gcc-4.7.patch')
-rw-r--r-- | games/megaglest/gcc-4.7.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/games/megaglest/gcc-4.7.patch b/games/megaglest/gcc-4.7.patch new file mode 100644 index 0000000000..3d118b1a9c --- /dev/null +++ b/games/megaglest/gcc-4.7.patch @@ -0,0 +1,28 @@ +--- trunk/source/shared_lib/sources/util/util.cpp 2012/04/14 21:21:09 3244 ++++ trunk/source/shared_lib/sources/util/util.cpp 2012/05/01 14:55:06 3279 +@@ -22,6 +22,8 @@ + + #ifdef WIN32 + #include <io.h> // for open() ++#else ++ #include <unistd.h> + #endif + + #include <sys/stat.h> // for open() +--- trunk/source/shared_lib/include/graphics/math_util.h 2012/04/16 20:15:57 3252 ++++ trunk/source/shared_lib/include/graphics/math_util.h 2012/05/01 14:55:06 3279 +@@ -184,10 +184,10 @@ + + Rect2<T> computeBoundingRect() const{ + return Rect2i( +- min(p[0].x, p[1].x), +- min(p[0].y, p[2].y), +- max(p[2].x, p[3].x), +- max(p[1].y, p[3].y)); ++ std::min(p[0].x, p[1].x), ++ std::min(p[0].y, p[2].y), ++ std::max(p[2].x, p[3].x), ++ std::max(p[1].y, p[3].y)); + } + + bool isInside(const Vec2<T> &pt) const{ |