From 1ae8332d643299a3ee9a9f45a8e25b8c87c751e1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 29 Jul 2009 13:39:38 +1000 Subject: [PATCH] include: fix enum EventType declaration. Having EventType after the enum declares a variable. silly me. Reported-by: Aaron Plattner Signed-off-by: Peter Hutterer --- include/eventstr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/eventstr.h b/include/eventstr.h index 3eefc052f..e39beb986 100644 --- a/include/eventstr.h +++ b/include/eventstr.h @@ -44,7 +44,7 @@ * Note: Keep KeyPress to Motion aligned with the core events. * Keep ET_Raw* in the same order as KeyPress - Motion */ -enum { +enum EventType { ET_KeyPress = 2, ET_KeyRelease, ET_ButtonPress, @@ -67,7 +67,7 @@ enum { ET_RawButtonRelease, ET_RawMotion, ET_Internal = 0xFF /* First byte */ -} EventType; +}; #define CHECKEVENT(ev) if (ev && ((InternalEvent*)(ev))->any.header != 0xFF) \ FatalError("Wrong event type %d.\n", \