From: Stuart Buchanan Date: Sun, 10 Aug 2014 11:54:58 +0000 (+0100) Subject: Fix VS2010 lack of fminf X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b11ff19a0fa740a7dce44027c40723aa6d8e0e5a;p=simgear.git Fix VS2010 lack of fminf --- diff --git a/simgear/scene/material/matlib.cxx b/simgear/scene/material/matlib.cxx index 64f75ab2..848568d0 100644 --- a/simgear/scene/material/matlib.cxx +++ b/simgear/scene/material/matlib.cxx @@ -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 rect = SGRect( - fminf(x1, x2), - fminf(y1, y2), + std::min(x1, x2), + std::min(y1, y2), fabs(x2 - x1), fabs(y2 - y1)); arealist->push_back(rect);