Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49ccd8f

Browse files
author
Joseph Mann
committed
Fix linux (fedora) compilation issues
1 parent 646bede commit 49ccd8f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

es-core/src/Util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ std::string strToUpper(const std::string& str)
2626
}
2727

2828

29-
#if _MSC_VER < 1800
29+
#if defined(_WIN32) && _MSC_VER < 1800
3030
float round(float num)
3131
{
3232
return (float)((int)(num + 0.5f));

es-core/src/Util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Eigen::Affine3f roundMatrix(const Eigen::Affine3f& mat);
1515
Eigen::Vector3f roundVector(const Eigen::Vector3f& vec);
1616
Eigen::Vector2f roundVector(const Eigen::Vector2f& vec);
1717

18+
#if defined(_WIN32) && _MSC_VER < 1800
1819
float round(float num);
20+
#endif
1921

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

0 commit comments

Comments
 (0)