- patch to compile on gcc 4.7

This commit is contained in:
Mark Vejvoda
2012-05-01 14:55:06 +00:00
parent 2c8b1739e5
commit a70b1a9881
2 changed files with 6 additions and 4 deletions

View File

@@ -184,10 +184,10 @@ public:
Rect2<T> computeBoundingRect() const{ Rect2<T> computeBoundingRect() const{
return Rect2i( return Rect2i(
min(p[0].x, p[1].x), std::min(p[0].x, p[1].x),
min(p[0].y, p[2].y), std::min(p[0].y, p[2].y),
max(p[2].x, p[3].x), std::max(p[2].x, p[3].x),
max(p[1].y, p[3].y)); std::max(p[1].y, p[3].y));
} }
bool isInside(const Vec2<T> &pt) const{ bool isInside(const Vec2<T> &pt) const{

View File

@@ -22,6 +22,8 @@
#ifdef WIN32 #ifdef WIN32
#include <io.h> // for open() #include <io.h> // for open()
#else
#include <unistd.h>
#endif #endif
#include <sys/stat.h> // for open() #include <sys/stat.h> // for open()