Skip to content

Commit 9df76e2

Browse files
committed
issue #9319 Doc build fails with cairo 1.17.6
Fixed compilation issue with the `ceil` function.
1 parent c22ae5e commit 9df76e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/dotrunner.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515

1616
#include <cassert>
17+
#include <cmath>
1718

1819
#include "dotrunner.h"
1920
#include "util.h"
@@ -130,8 +131,8 @@ bool DotRunner::readBoundingBox(const QCString &fileName,int *width,int *height,
130131
//printf("readBoundingBox sscanf fail\n");
131132
return FALSE;
132133
}
133-
*width = static_cast<int>(ceil(w));
134-
*height = static_cast<int>(ceil(h));
134+
*width = static_cast<int>(std::ceil(w));
135+
*height = static_cast<int>(std::ceil(h));
135136
return TRUE;
136137
}
137138
}

0 commit comments

Comments
 (0)