From 4f9a2a618eb08693e4c77666eab5557b8588edcc Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 16 May 2015 15:16:04 +1000 Subject: Avoid some warnings from clang. --- win32/ScintillaWin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 41122db65..c965dd60f 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -12,6 +12,7 @@ #include #include +#include #include #include #include @@ -115,7 +116,6 @@ typedef UINT_PTR (WINAPI *SetCoalescableTimerSig)(HWND hwnd, UINT_PTR nIDEvent, // GCC has trouble with the standard COM ABI so do it the old C way with explicit vtables. -const TCHAR scintillaClassName[] = TEXT("Scintilla"); const TCHAR callClassName[] = TEXT("CallTip"); #ifdef SCI_NAMESPACE @@ -548,8 +548,8 @@ HWND ScintillaWin::MainHWND() { } bool ScintillaWin::DragThreshold(Point ptStart, Point ptNow) { - int xMove = static_cast(abs(ptStart.x - ptNow.x)); - int yMove = static_cast(abs(ptStart.y - ptNow.y)); + int xMove = static_cast(std::abs(ptStart.x - ptNow.x)); + int yMove = static_cast(std::abs(ptStart.y - ptNow.y)); return (xMove > ::GetSystemMetrics(SM_CXDRAG)) || (yMove > ::GetSystemMetrics(SM_CYDRAG)); } -- cgit v1.2.3