diff options
Diffstat (limited to 'cocoa/InfoBar.mm')
-rw-r--r-- | cocoa/InfoBar.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index c7061e6f7..19f2c6943 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -10,6 +10,8 @@ * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt). */ +#include <cmath> + #import "InfoBar.h" //-------------------------------------------------------------------------------------------------- @@ -36,7 +38,7 @@ if (heightDelta > 0) { newRect.size.height -= heightDelta; - newRect.origin.y += ceil(heightDelta / 2); + newRect.origin.y += std::ceil(heightDelta / 2); } } |