Line 0
Link Here
|
|
|
1 |
--- test/fake-symbols.c~ |
2 |
+++ test/fake-symbols.c |
3 |
@@ -92,7 +92,11 @@ xf86NameCmp(const char *s1, const char * |
4 |
} |
5 |
|
6 |
_X_EXPORT char * |
7 |
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 18 |
8 |
xf86CheckStrOption(OPTTYPE optlist, const char *name, CONST char *deflt) |
9 |
+#else |
10 |
+xf86CheckStrOption(OPTTYPE optlist, const char *name, char *deflt) |
11 |
+#endif |
12 |
{ |
13 |
return NULL; |
14 |
} |
15 |
@@ -231,7 +235,7 @@ InitValuatorAxisStruct(DeviceIntPtr dev, |
16 |
{ |
17 |
return TRUE; |
18 |
} |
19 |
-#else |
20 |
+#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 12 |
21 |
_X_EXPORT void |
22 |
InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, |
23 |
int minval, int maxval, int resolution, |
24 |
@@ -239,6 +243,14 @@ InitValuatorAxisStruct(DeviceIntPtr dev, |
25 |
{ |
26 |
return; |
27 |
} |
28 |
+#else |
29 |
+_X_EXPORT void |
30 |
+InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, |
31 |
+ int minval, int maxval, int resolution, |
32 |
+ int min_res, int max_res) |
33 |
+{ |
34 |
+ return; |
35 |
+} |
36 |
#endif |
37 |
|
38 |
_X_EXPORT void |
39 |
@@ -279,7 +291,7 @@ InitPtrFeedbackClassDeviceStruct(DeviceI |
40 |
_X_EXPORT int |
41 |
XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type, |
42 |
int format, int mode, unsigned long len, |
43 |
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 16 |
44 |
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 16 |
45 |
const void * |
46 |
#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 12 |
47 |
const pointer |
48 |
@@ -506,6 +518,7 @@ xf86UnblockSIGIO (int wasset) |
49 |
|
50 |
/* This is not the same as the X server one, but it'll do for the tests */ |
51 |
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14 |
52 |
+#define InputOption InputOption_custom |
53 |
typedef struct _InputOption { |
54 |
struct _InputOption *next; |
55 |
char *key; |
56 |
@@ -537,6 +550,7 @@ input_option_free_list(InputOption **opt |
57 |
*opts = tmp; |
58 |
} |
59 |
} |
60 |
+#undef InputOption |
61 |
#endif |
62 |
|
63 |
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 16 |
64 |
@@ -558,9 +572,9 @@ _X_EXPORT void xf86PostTouchEvent(Device |
65 |
uint32_t flags, const ValuatorMask *mask) { |
66 |
return; |
67 |
} |
68 |
+#endif |
69 |
|
70 |
_X_EXPORT void |
71 |
xf86PrintChipsets(const char *drvname, const char *drvmsg, SymTabPtr chips) |
72 |
{ |
73 |
} |
74 |
-#endif |