1
Index: libxi/include/X11/extensions/XInput.h
2
===================================================================
3
--- libxi-1.2.0.orig/include/X11/extensions/XInput.h 2009-05-08 15:25:01.000000000 +0200
4
+++ libxi-1.2.0/include/X11/extensions/XInput.h 2009-05-08 15:40:12.000000000 +0200
6
#define NoExtensionEvent(d,type,_class) \
7
{ _class = ((XDevice *) d)->device_id << 8 | _noExtensionEvent;}
10
+/* We need the declaration for DevicePresence. */
11
+#if defined(__cplusplus) || defined(c_plusplus)
14
+ extern int _XiGetDevicePresenceNotifyEvent(Display *);
15
+#if defined(__cplusplus) || defined(c_plusplus)
19
#define DevicePresence(dpy, type, _class) \
21
- extern int _XiGetDevicePresenceNotifyEvent(Display *); \
22
type = _XiGetDevicePresenceNotifyEvent(dpy); \
23
_class = (0x10000 | _devicePresence); \