diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-29 08:12:39 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-29 08:12:39 +0000 |
| commit | 9c6e217f29bb0a76ec153574a3d493b020e5fb60 (patch) | |
| tree | b38acde6c091b7f8b0e3205645f9d232f19eeabb /apps/plugins/doom/st_stuff.h | |
| parent | 6980c1e9988a7c959876ad77b760e042272a9ec2 (diff) | |
| download | rockbox-9c6e217f29bb0a76ec153574a3d493b020e5fb60.zip rockbox-9c6e217f29bb0a76ec153574a3d493b020e5fb60.tar.gz rockbox-9c6e217f29bb0a76ec153574a3d493b020e5fb60.tar.bz2 rockbox-9c6e217f29bb0a76ec153574a3d493b020e5fb60.tar.xz | |
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.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/doom/st_stuff.h b/apps/plugins/doom/st_stuff.h index d65b01e..24f8c82 100644 --- a/apps/plugins/doom/st_stuff.h +++ b/apps/plugins/doom/st_stuff.h @@ -68,19 +68,21 @@ void ST_Start(void); void ST_Init(void); // States for status bar code. -typedef enum +enum { AutomapState, FirstPersonState -} st_stateenum_t; +}; +typedef unsigned st_stateenum_t; // States for the chat code. -typedef enum +enum { StartChatState, WaitDestState, GetChatState -} st_chatstateenum_t; +}; +typedef unsigned st_chatstateenum_t; boolean ST_Responder(event_t* ev); |