Fix linux (fedora) compilation issues

This commit is contained in:
Joseph Mann 2016-06-30 12:05:50 -06:00 committed by Jools Wills
parent 2f0e1fa9ef
commit cdd819e041
2 changed files with 3 additions and 1 deletions
es-core/src

View file

@ -26,7 +26,7 @@ std::string strToUpper(const std::string& str)
} }
#if _MSC_VER < 1800 #if defined(_WIN32) && _MSC_VER < 1800
float round(float num) float round(float num)
{ {
return (float)((int)(num + 0.5f)); return (float)((int)(num + 0.5f));

View file

@ -15,7 +15,9 @@ Eigen::Affine3f roundMatrix(const Eigen::Affine3f& mat);
Eigen::Vector3f roundVector(const Eigen::Vector3f& vec); Eigen::Vector3f roundVector(const Eigen::Vector3f& vec);
Eigen::Vector2f roundVector(const Eigen::Vector2f& vec); Eigen::Vector2f roundVector(const Eigen::Vector2f& vec);
#if defined(_WIN32) && _MSC_VER < 1800
float round(float num); float round(float num);
#endif
std::string getCanonicalPath(const std::string& str); std::string getCanonicalPath(const std::string& str);