aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-09-04 18:22:56 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-09-04 18:22:56 +0930
commit4509ec1daf8a03b261c1fa8aa48b5def3f336aed (patch)
tree091ba3940419146578492cd6639000b951254283 /src/evdev.c
parentShut up "unused variable" compiler warnings. (diff)
downloadxf86-input-evdev-4509ec1daf8a03b261c1fa8aa48b5def3f336aed.tar.gz
xf86-input-evdev-4509ec1daf8a03b261c1fa8aa48b5def3f336aed.tar.bz2
xf86-input-evdev-4509ec1daf8a03b261c1fa8aa48b5def3f336aed.zip
Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation.
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c8
1 files changed, 4 insertions, 4 deletions
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 */