+ fix linker error with MSVC
This commit is contained in:
parent
5a9484f06c
commit
683e342cff
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user