From 5b62ac1efec42ad725733d8acaf1c2450224a9d0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 26 May 2008 22:06:55 +0930 Subject: Check for XINPUT ABI 3. --- src/xf86Elo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xf86Elo.c b/src/xf86Elo.c index 2a76849..c107927 100644 --- a/src/xf86Elo.c +++ b/src/xf86Elo.c @@ -1340,7 +1340,10 @@ xf86EloControl(DeviceIntPtr dev, * max and min values scaled from the approximate size of the * screen to fit one meter. */ - if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents, + if (InitValuatorClassDeviceStruct(dev, 2, +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3 + xf86GetMotionEvents, +#endif local->history_size, Absolute) == FALSE) { ErrorF("Unable to allocate Elographics touchscreen ValuatorClassDeviceStruct\n"); return !Success; -- cgit v1.2.3