diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-08 13:27:47 +1000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2011-04-22 14:10:25 +0100 |
commit | ca39f67c2aa5b255f2b85d7c649edff8295eed5e (patch) | |
tree | 6a290e2894521a2effaffaef725973c33570176b /XI2.h | |
parent | ed840d79d3cac60b2fb17448afcc28828236e91b (diff) |
Put a #warning and #error in to avoid unsuspecting XI 2.1 users.
The #warning directive is intentionally outside the define to disable the
error. Early adopters of the protocol can't see this warning often enough.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XI2.h')
-rw-r--r-- | XI2.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -25,6 +25,12 @@ #ifndef _XI2_H_ #define _XI2_H_ +#warning "XI 2.1 is not stable yet." +#warning "Applications relying on this header will break as the protocol sees updates." +#ifndef XINPUT2_1_USE_UNSTABLE_PROTOCOL +#error "Define XINPUT2_1_USE_UNSTABLE_PROTOCOL to disable this error" +#endif + #define XI_2_Major 2 #define XI_2_Minor 0 #define XI_2_1_Minor 1 |