Fix compilation errors with VC6 (and possibly other compilers) introduced in
r70797 (see #13383): as we only include <math.h> and not <cmath> 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
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;