Fix VS2010 lack of fminf

This commit is contained in:
Stuart Buchanan
2014-08-10 12:54:58 +01:00
parent e7e616e07c
commit b11ff19a0f

View File

@@ -108,8 +108,8 @@ bool SGMaterialLib::load( const string &fg_root, const string& mpath,
float y1 = area_iter->get()->getFloatValue("lat1", -90.0f);
float y2 = area_iter->get()->getFloatValue("lat2", 90.0f);
SGRect<float> rect = SGRect<float>(
fminf(x1, x2),
fminf(y1, y2),
std::min<float>(x1, x2),
std::min<float>(y1, y2),
fabs(x2 - x1),
fabs(y2 - y1));
arealist->push_back(rect);