summaryrefslogtreecommitdiff
path: root/src/evdev.h
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.h
parenta205dfc091e6d7c67e3fa1421fe8a43f5ed40b00 (diff)
Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation.
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 80756ac..6c59dad 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -42,6 +42,11 @@
#define EVDEV_MAXBUTTONS 32
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
+#define HAVE_PROPERTIES 1
+#endif
+
+
/* axis specific data for wheel emulation */
typedef struct {
int up_button;
@@ -108,7 +113,7 @@ void EvdevMBEmuEnable(InputInfoPtr, BOOL);
unsigned int EvdevUtilButtonEventToButtonNumber(int code);
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
+#ifdef HAVE_PROPERTIES
void EvdevMBEmuInitProperty(DeviceIntPtr);
BOOL EvdevMBEmuSetProperty(DeviceIntPtr, Atom, XIPropertyValuePtr);