diff options
author | mitchell <unknown> | 2019-03-31 23:20:01 -0400 |
---|---|---|
committer | mitchell <unknown> | 2019-03-31 23:20:01 -0400 |
commit | 2c20e36f4ec739fd0887aceda589fce2c1757342 (patch) | |
tree | 7a00c34eab91ecec5e28a45df72f22d3c99d8701 /cocoa/InfoBar.mm | |
parent | de07b9abd6711d657c170de23871ddb5503a1011 (diff) | |
download | scintilla-mirror-2c20e36f4ec739fd0887aceda589fce2c1757342.tar.gz |
Backport: Use generic versions of ceil, floor, round, lround, trunc from <cmath>.
Backport of changeset 7329:2662ef098d93, but without std::round and std::lround,
since older Mac OSX SDKs may not have them.
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); } } |