Fix for building with VS2013.

This commit is contained in:
Aloshi 2014-05-23 16:51:24 -05:00
parent 8f3a02d859
commit d2c7de3802

View file

@ -21,10 +21,13 @@ std::string strToUpper(const std::string& str)
return strToUpper(str.c_str()); return strToUpper(str.c_str());
} }
#if _MSC_VER < 1800
float round(float num) float round(float num)
{ {
return (float)((int)(num + 0.5f)); return (float)((int)(num + 0.5f));
} }
#endif
Eigen::Affine3f& roundMatrix(Eigen::Affine3f& mat) Eigen::Affine3f& roundMatrix(Eigen::Affine3f& mat)
{ {