From c6907dcd4129ac374bf582860926fd0038f23f60 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 5 Mar 2012 13:00:51 +0000 Subject: [PATCH] Remove the wrong "std::" scope prefix before ceil() call. Fix compilation errors with VC6 (and possibly other compilers) introduced in r70797 (see #13383): as we only include and not we don't necessarily have std::ceil() available, only the extern "C" ceil(). Just use the latter instead of the former. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/uiaction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/uiaction.cpp b/src/msw/uiaction.cpp index 2210395445..5aff359052 100644 --- a/src/msw/uiaction.cpp +++ b/src/msw/uiaction.cpp @@ -65,8 +65,8 @@ bool wxUIActionSimulator::MouseMove(long x, long y) int displayx, displayy; wxDisplaySize(&displayx, &displayy); - int scaledx = std::ceil((float)x * 65535.0 / (displayx-1)); - int scaledy = std::ceil((float)y * 65535.0 / (displayy-1)); + int scaledx = ceil((float)x * 65535.0 / (displayx-1)); + int scaledy = ceil((float)y * 65535.0 / (displayy-1)); mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE, scaledx, scaledy, 0, 0); return true; -- 2.45.2