summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/st_stuff.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-29 08:12:39 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-29 08:12:39 +0000
commit9c6e217f29bb0a76ec153574a3d493b020e5fb60 (patch)
treeb38acde6c091b7f8b0e3205645f9d232f19eeabb /apps/plugins/doom/st_stuff.h
parent6980c1e9988a7c959876ad77b760e042272a9ec2 (diff)
downloadrockbox-9c6e217f29bb0a76ec153574a3d493b020e5fb60.tar.gz
rockbox-9c6e217f29bb0a76ec153574a3d493b020e5fb60.zip
Doom plugin: In anticipation of moving to the EABI toolchain, because of its assumptions about enums being sized as ints, convert enum typdefs to int or unsigned depending upon whether they have negative values in the enumeration. This should effectively preserve the manner in which it is compiled under the old toolchain and avoids having to closely inspect and possibly change many places in the code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26368 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/st_stuff.h')
-rw-r--r--apps/plugins/doom/st_stuff.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/doom/st_stuff.h b/apps/plugins/doom/st_stuff.h
index d65b01e571..24f8c82661 100644
--- a/apps/plugins/doom/st_stuff.h
+++ b/apps/plugins/doom/st_stuff.h
@@ -68,19 +68,21 @@ void ST_Start(void);
68void ST_Init(void); 68void ST_Init(void);
69 69
70// States for status bar code. 70// States for status bar code.
71typedef enum 71enum
72{ 72{
73 AutomapState, 73 AutomapState,
74 FirstPersonState 74 FirstPersonState
75} st_stateenum_t; 75};
76typedef unsigned st_stateenum_t;
76 77
77// States for the chat code. 78// States for the chat code.
78typedef enum 79enum
79{ 80{
80 StartChatState, 81 StartChatState,
81 WaitDestState, 82 WaitDestState,
82 GetChatState 83 GetChatState
83} st_chatstateenum_t; 84};
85typedef unsigned st_chatstateenum_t;
84 86
85boolean ST_Responder(event_t* ev); 87boolean ST_Responder(event_t* ev);
86 88