Skip to content

Commit

Permalink
Merge pull request #594 from codinghipster/master
Browse files Browse the repository at this point in the history
Fix linux (fedora) compilation issues
  • Loading branch information
Aloshi authored Aug 26, 2018
2 parents d24c0cc + 49ccd8f commit 9cc42ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion es-core/src/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
return (float)((int)(num + 0.5f));
Expand Down
2 changes: 2 additions & 0 deletions es-core/src/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Eigen::Affine3f roundMatrix(const Eigen::Affine3f& mat);
Eigen::Vector3f roundVector(const Eigen::Vector3f& vec);
Eigen::Vector2f roundVector(const Eigen::Vector2f& vec);

#if defined(_WIN32) && _MSC_VER < 1800
float round(float num);
#endif

std::string getCanonicalPath(const std::string& str);

Expand Down

0 comments on commit 9cc42ad

Please sign in to comment.