From d3e10dd71232e9d743a9a88396792d7101f752f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Tue, 9 Dec 2008 10:33:23 +0000 Subject: [PATCH] MinGW tweak: ISO C++ forbids declaration of `abs' with no type git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3327 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/rfb_win32/CPointer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/rfb_win32/CPointer.cxx b/win/rfb_win32/CPointer.cxx index 3d0d9342..2e9065f9 100644 --- a/win/rfb_win32/CPointer.cxx +++ b/win/rfb_win32/CPointer.cxx @@ -54,7 +54,7 @@ void CPointer::pointerEvent(InputHandler* writer, const Point& pos, int buttonMa } -inline abs(int x) {return x>0 ? x : 0;} +inline int abs(int x) {return x>0 ? x : 0;} int emulate3Mask(int buttonMask) { // - Release left & right and press middle -- 2.39.5