* [gentoo-commits] gentoo-x86 commit in games-strategy/megaglest/files: megaglest-3.6.0.3-gcc-4.7.patch
@ 2012-10-29 20:14 Julian Ospald (hasufell)
0 siblings, 0 replies; only message in thread
From: Julian Ospald (hasufell) @ 2012-10-29 20:14 UTC (permalink / raw
To: gentoo-commits
hasufell 12/10/29 20:14:48
Added: megaglest-3.6.0.3-gcc-4.7.patch
Log:
fix compilation for gcc-4.7 wrt #440134
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Revision Changes Path
1.1 games-strategy/megaglest/files/megaglest-3.6.0.3-gcc-4.7.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/megaglest/files/megaglest-3.6.0.3-gcc-4.7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/megaglest/files/megaglest-3.6.0.3-gcc-4.7.patch?rev=1.1&content-type=text/plain
Index: megaglest-3.6.0.3-gcc-4.7.patch
===================================================================
From: Julian Ospald <hasufell@gentoo.org>
Date: Mon Oct 29 19:15:35 UTC 2012
Subject: fix compilation for gcc-4.7
https://bugs.gentoo.org/show_bug.cgi?id=440134
--- source/shared_lib/sources/util/util.cpp
+++ source/shared_lib/sources/util/util.cpp
@@ -9,6 +9,8 @@
// License, or (at your option) any later version
// ==============================================================
+#include <unistd.h>
+
#include "util.h"
#include <ctime>
--- source/shared_lib/include/graphics/math_util.h
+++ source/shared_lib/include/graphics/math_util.h
@@ -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{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-29 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-29 20:14 [gentoo-commits] gentoo-x86 commit in games-strategy/megaglest/files: megaglest-3.6.0.3-gcc-4.7.patch Julian Ospald (hasufell)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox