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>
This commit is contained in:
Peter Hutterer 2011-04-08 13:27:47 +10:00 committed by Daniel Stone
parent ed840d79d3
commit ca39f67c2a

6
XI2.h
View file

@ -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