From ca39f67c2aa5b255f2b85d7c649edff8295eed5e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 8 Apr 2011 13:27:47 +1000 Subject: [PATCH] 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 --- XI2.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/XI2.h b/XI2.h index 5ef8983..99e9d0d 100644 --- a/XI2.h +++ b/XI2.h @@ -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