From 4509ec1daf8a03b261c1fa8aa48b5def3f336aed Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 4 Sep 2008 18:22:56 +0930 Subject: Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation. --- src/emuWheel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emuWheel.c') diff --git a/src/emuWheel.c b/src/emuWheel.c index a436c49..e503aaa 100644 --- a/src/emuWheel.c +++ b/src/emuWheel.c @@ -43,7 +43,7 @@ #define WHEEL_NOT_CONFIGURED 0 -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES static const char *propname_wheel_emu = "Wheel Emulation"; static const char *propname_wheel_xmap = "Wheel Emulation X Axis"; static const char *propname_wheel_ymap = "Wheel Emulation Y Axis"; @@ -316,7 +316,7 @@ EvdevWheelEmuPreInit(InputInfoPtr pInfo) "EmulateWheelTimeout: %d\n", pInfo->name, pEvdev->emulateWheel.button, inertia, timeout); -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES XIChangeDeviceProperty(pInfo->dev, prop_wheel_emu, XA_INTEGER, 8, PropModeReplace, 1, &pEvdev->emulateWheel.enabled, TRUE, FALSE, FALSE); @@ -348,7 +348,7 @@ EvdevWheelEmuPreInit(InputInfoPtr pInfo) #endif } -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES void EvdevWheelEmuInitProperty(DeviceIntPtr dev) { -- cgit v1.2.3