diff --git a/src/Mod/Drawing/Gui/TaskOrthoViews.cpp b/src/Mod/Drawing/Gui/TaskOrthoViews.cpp index 5182f68e9..2829e925c 100644 --- a/src/Mod/Drawing/Gui/TaskOrthoViews.cpp +++ b/src/Mod/Drawing/Gui/TaskOrthoViews.cpp @@ -48,6 +48,12 @@ using namespace std; #endif +#if _MSC_VER <= 1500 +// 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); +} +#endif // _MSC_VER < 1500 void pagesize(string & page_template, int dims[4], int block[4]) {