618a15
--- a/handler.cc
618a15
+++ b/handler.cc
618a15
@@ -23,6 +23,8 @@
618a15
 #include <X11/extensions/XTest.h>
618a15
 #include <X11/XKBlib.h>
618a15
 #include <X11/Xproto.h>
618a15
+#include <cmath>  // std::abs(float)
618a15
+using std::abs;
618a15
 
618a15
 XState *xstate = NULL;
618a15
 
618a15
@@ -533,8 +535,6 @@ class WaitForPongHandler : public Handler, protected Timeout {
618a15
 	virtual Grabber::State grab_mode() { return parent->grab_mode(); }
618a15
 };
618a15
 
618a15
-static inline float abs(float x) { return x > 0 ? x : -x; }
618a15
-
618a15
 class AbstractScrollHandler : public Handler {
618a15
 	bool have_x, have_y;
618a15
 	float last_x, last_y;