From 992aba3cb782185b9482d350c6d1c791a2d10010 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 5 Apr 2024 14:52:45 +0200 Subject: [PATCH] include: xkbstr.h: fix missing include of Xdefs.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Part-of: --- include/xkbstr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/xkbstr.h b/include/xkbstr.h index 8a9f01c68..749f1f26e 100644 --- a/include/xkbstr.h +++ b/include/xkbstr.h @@ -27,6 +27,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifndef _XKBSTR_H_ #define _XKBSTR_H_ +#include #include #define XkbCharToInt(v) ((int) ((v) & 0x80 ? ((v) | (~0xff)) : ((v) & 0x7f)))