mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-06 09:08:19 +02:00
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:
parent
ed840d79d3
commit
ca39f67c2a
1 changed files with 6 additions and 0 deletions
6
XI2.h
6
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue