+ fix linker error with MSVC 2012

This commit is contained in:
wmayer 2015-02-28 12:42:27 +01:00
parent bebca4e54c
commit d29d62b4ab

View File

@ -48,7 +48,7 @@ using namespace std;
#endif
#if _MSC_VER <= 1500
#if _MSC_VER <= 1700
// maybe in the c++ standard later, older compiler don't have round()
double round(double r) {
return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);