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/doomstat.h | |
parent | 6980c1e9988a7c959876ad77b760e042272a9ec2 (diff) | |
download | rockbox-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/doomstat.h')
-rw-r--r-- | apps/plugins/doom/doomstat.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/doom/doomstat.h b/apps/plugins/doom/doomstat.h index 5a5a87c3c5..a89a4e547f 100644 --- a/apps/plugins/doom/doomstat.h +++ b/apps/plugins/doom/doomstat.h | |||
@@ -52,14 +52,15 @@ extern boolean fastparm; // checkparm of -fast | |||
52 | 52 | ||
53 | extern boolean devparm; // DEBUG: launched with -devparm | 53 | extern boolean devparm; // DEBUG: launched with -devparm |
54 | 54 | ||
55 | enum automapmode_e { | 55 | enum { |
56 | am_active = 1, // currently shown | 56 | am_active = 1, // currently shown |
57 | am_overlay= 2, // covers the screen, i.e. not overlay mode | 57 | am_overlay= 2, // covers the screen, i.e. not overlay mode |
58 | am_rotate = 4, // rotates to the player facing direction | 58 | am_rotate = 4, // rotates to the player facing direction |
59 | am_follow = 8, // keep the player centred | 59 | am_follow = 8, // keep the player centred |
60 | am_grid =16, // show grid | 60 | am_grid =16, // show grid |
61 | }; | 61 | }; |
62 | extern enum automapmode_e automapmode; // Mode that the automap is in | 62 | typedef int automapmode_e; |
63 | extern automapmode_e automapmode; // Mode that the automap is in | ||
63 | 64 | ||
64 | // ----------------------------------------------------- | 65 | // ----------------------------------------------------- |
65 | // Game Mode - identify IWAD as shareware, retail etc. | 66 | // Game Mode - identify IWAD as shareware, retail etc. |