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/m_menu.c | |
| 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/m_menu.c')
| -rw-r--r-- | apps/plugins/doom/m_menu.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/apps/plugins/doom/m_menu.c b/apps/plugins/doom/m_menu.c index 14d8474..b0b0f9f 100644 --- a/apps/plugins/doom/m_menu.c +++ b/apps/plugins/doom/m_menu.c @@ -246,7 +246,8 @@ enum readthis, quitdoom, main_end -} main_e; +}; +unsigned main_e; menuitem_t MainMenu[]= { @@ -280,7 +281,8 @@ enum ep3, ep4, ep_end -} episodes_e; +}; +unsigned episodes_e; menuitem_t EpisodeMenu[]= { @@ -311,7 +313,8 @@ enum violence, nightmare, newg_end -} newgame_e; +}; +unsigned newgame_e; menuitem_t NewGameMenu[]= { @@ -347,7 +350,8 @@ enum option_empty2, soundvol, opt_end -} options_e; +}; +unsigned options_e; menuitem_t OptionsMenu[]= { @@ -377,7 +381,8 @@ enum { rdthsempty1, read1_end -} read_e; +}; +unsigned read_e; menuitem_t ReadMenu1[] = { @@ -398,7 +403,8 @@ enum { rdthsempty2, read2_end -} read_e2; +}; +unsigned read_e2; menuitem_t ReadMenu2[]= { @@ -427,7 +433,8 @@ enum system_vol, sfx_empty3, sound_end -} sound_e; +}; +unsigned sound_e; menuitem_t SoundMenu[]= { @@ -461,7 +468,8 @@ enum load5, load6, load_end -} load_e; +}; +unsigned load_e; menuitem_t LoadMenu[]= { |