+ fix linker error with MSVC

This commit is contained in:
wmayer 2015-01-25 12:22:04 +01:00
parent 5a9484f06c
commit 683e342cff

View File

@ -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])
{