From d2c7de38020dbbb90cc8e405f72f1a78ce7773ce Mon Sep 17 00:00:00 2001 From: Aloshi Date: Fri, 23 May 2014 16:51:24 -0500 Subject: [PATCH] Fix for building with VS2013. --- src/Util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Util.cpp b/src/Util.cpp index f23f3d0bf..79fe55bcf 100644 --- a/src/Util.cpp +++ b/src/Util.cpp @@ -21,10 +21,13 @@ std::string strToUpper(const std::string& str) return strToUpper(str.c_str()); } + +#if _MSC_VER < 1800 float round(float num) { return (float)((int)(num + 0.5f)); } +#endif Eigen::Affine3f& roundMatrix(Eigen::Affine3f& mat) {