summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-29 13:39:38 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-30 08:43:14 +1000
commit1ae8332d643299a3ee9a9f45a8e25b8c87c751e1 (patch)
treef49ef3dcead7eeb7f97485e3ae1e84b4f6a646f7 /include
parent994f7a1c814a89e90f710dac5bf6b2445fb64712 (diff)
include: fix enum EventType declaration.
Having EventType after the enum declares a variable. silly me. Reported-by: Aaron Plattner Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/eventstr.h4
1 files 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", \