summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie <root@netbsd.(none)>2009-07-09 08:09:54 +0200
committerCharlie <root@netbsd.(none)>2009-07-09 08:09:54 +0200
commit8a3f6f75218080b3e7657cb104c6f8e025f358ef (patch)
tree86878bcc568f7f737d460dafe9b828a0cbd99ac2
parent2ddc4e9b2882914a56508613fe069c7335c64cc7 (diff)
Conditionally declare some variables that are only used conditionally.
-rw-r--r--src/mouse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mouse.c b/src/mouse.c
index fefdc1f..dd3eb2e 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -1593,8 +1593,10 @@ MouseProc(DeviceIntPtr device, int what)
mousePrivPtr mPriv;
unsigned char map[MSE_MAXBUTTONS + 1];
int i;
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
Atom btn_labels[MSE_MAXBUTTONS] = {0};
Atom axes_labels[2] = { 0, 0 };
+#endif
pInfo = device->public.devicePrivate;
pMse = pInfo->private;