aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/InfoBar.mm
diff options
context:
space:
mode:
authormitchell <unknown>2019-03-31 23:20:01 -0400
committermitchell <unknown>2019-03-31 23:20:01 -0400
commit2c20e36f4ec739fd0887aceda589fce2c1757342 (patch)
tree7a00c34eab91ecec5e28a45df72f22d3c99d8701 /cocoa/InfoBar.mm
parentde07b9abd6711d657c170de23871ddb5503a1011 (diff)
downloadscintilla-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.mm4
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);
}
}