include: xkbstr.h: fix missing include of Xdefs.h
xkbstr.h uses types from Xdefs.h (eg. Bool) but doesn't include it. If somebody includes it, w/o including Xdefs.h first, compile breaks: ../include/xkbstr.h:84:5: error: unknown type name ‘Bool’ 84 | Bool active; | ^~~~ ../include/xkbstr.h:517:5: error: unknown type name ‘Bool’ 517 | Bool num_groups_changed; | ^~~~ ../include/xkbstr.h:608:5: error: unknown type name ‘Bool’ 608 | Bool has_own_state; | ^~~~ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1474>
This commit is contained in:
parent
11c92ffcf5
commit
992aba3cb7
|
@ -27,6 +27,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#ifndef _XKBSTR_H_
|
||||
#define _XKBSTR_H_
|
||||
|
||||
#include <X11/Xdefs.h>
|
||||
#include <X11/extensions/XKB.h>
|
||||
|
||||
#define XkbCharToInt(v) ((int) ((v) & 0x80 ? ((v) | (~0xff)) : ((v) & 0x7f)))
|
||||
|
|
Loading…
Reference in New Issue