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/evdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/evdev.c') diff --git a/src/evdev.c b/src/evdev.c index 2c071fa..f4efd74 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -96,7 +96,7 @@ static const char *evdevDefaults[] = { NULL }; -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES typedef struct _PropHandler { void (*init)(DeviceIntPtr dev); BOOL (*handle)(DeviceIntPtr dev, Atom prop, XIPropertyValuePtr val); @@ -170,7 +170,7 @@ PostKbdEvent(InputInfoPtr pInfo, struct input_event *ev, int value) xf86PostKeyboardEvent(pInfo->dev, code, value); } -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES static Bool EvdevSetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr val) { @@ -878,7 +878,7 @@ EvdevInitButtonMapping(InputInfoPtr pInfo) } -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES static void EvdevInitProperties(DeviceIntPtr device) { @@ -922,7 +922,7 @@ EvdevInit(DeviceIntPtr device) else if (pEvdev->flags & EVDEV_ABSOLUTE_EVENTS) EvdevAddAbsClass(device); -#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3 +#ifdef HAVE_PROPERTIES /* We drop the return value, the only time we ever want the handlers to * unregister is when the device dies. In which case we don't have to * unregister anyway */ -- cgit v1.2.3