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.hutte...@who-t.net>
---
 XI2.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/XI2.h b/XI2.h
index 4c7feb6..8a83a63 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 the protocol will break as break as the 
protocol sees updates."
+#ifndef XINPUT2_1_USE_UNSTABLE_PROTOCOL
+#error "Define XINPUT2_1_USE_UNSTABLE_PROTOCOL to disable this error"
+#endif
+
 /* Indices into the versions[] array (XExtInt.c). Used as a index to
  * retrieve the minimum version of XI from _XiCheckExtInit.
  * For indices 0 to 6 see XI.h */
-- 
1.7.4.2

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to