All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ui/kbd-state.h: Make the header C++ compatible
@ 2026-01-29 19:04 Roman Kiryanov
  2026-01-29 19:16 ` Marc-André Lureau
  2026-01-29 19:23 ` Philippe Mathieu-Daudé
  0 siblings, 2 replies; 12+ messages in thread
From: Roman Kiryanov @ 2026-01-29 19:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: mjt, whollins, jansene, jpcottin, Roman Kiryanov

This patch fixes the C++ compilation error:

ISO C++ forbids forward references to 'enum' types

Signed-off-by: Will Hollins <whollins@google.com>
Signed-off-by: Roman Kiryanov <rkir@google.com>
---
 include/ui/kbd-state.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/ui/kbd-state.h b/include/ui/kbd-state.h
index 1f37b932eb..3522ebe51b 100644
--- a/include/ui/kbd-state.h
+++ b/include/ui/kbd-state.h
@@ -9,9 +9,7 @@
 
 #include "qapi/qapi-types-ui.h"
 
-typedef enum QKbdModifier QKbdModifier;
-
-enum QKbdModifier {
+typedef enum QKbdModifier {
     QKBD_MOD_NONE = 0,
 
     QKBD_MOD_SHIFT,
@@ -23,7 +21,7 @@ enum QKbdModifier {
     QKBD_MOD_CAPSLOCK,
 
     QKBD_MOD__MAX
-};
+} QKbdModifier;
 
 typedef struct QKbdState QKbdState;
 
-- 
2.53.0.rc1.225.gd81095ad13-goog



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-02-02 12:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-29 19:04 [PATCH] ui/kbd-state.h: Make the header C++ compatible Roman Kiryanov
2026-01-29 19:16 ` Marc-André Lureau
2026-01-29 19:23 ` Philippe Mathieu-Daudé
2026-01-29 20:25   ` Roman Kiryanov
2026-01-29 20:31     ` Peter Maydell
2026-01-29 21:44       ` Philippe Mathieu-Daudé
2026-01-30  9:19         ` Peter Maydell
2026-01-30 10:59           ` Markus Armbruster
2026-02-02 11:00           ` Daniel P. Berrangé
2026-02-02 11:20             ` Philippe Mathieu-Daudé
2026-02-02 12:37               ` Markus Armbruster
2026-01-29 21:51       ` Roman Kiryanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.