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/sounds.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/sounds.h')
-rw-r--r-- | apps/plugins/doom/sounds.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/doom/sounds.h b/apps/plugins/doom/sounds.h index bf1004cda9..a5f6fc53ee 100644 --- a/apps/plugins/doom/sounds.h +++ b/apps/plugins/doom/sounds.h | |||
@@ -102,7 +102,7 @@ extern musicinfo_t S_music[]; | |||
102 | // Identifiers for all music in game. | 102 | // Identifiers for all music in game. |
103 | // | 103 | // |
104 | 104 | ||
105 | typedef enum { | 105 | enum { |
106 | mus_None, | 106 | mus_None, |
107 | mus_e1m1, | 107 | mus_e1m1, |
108 | mus_e1m2, | 108 | mus_e1m2, |
@@ -172,13 +172,14 @@ typedef enum { | |||
172 | mus_dm2ttl, | 172 | mus_dm2ttl, |
173 | mus_dm2int, | 173 | mus_dm2int, |
174 | NUMMUSIC | 174 | NUMMUSIC |
175 | } musicenum_t; | 175 | }; |
176 | typedef unsigned musicenum_t; | ||
176 | 177 | ||
177 | // | 178 | // |
178 | // Identifiers for all sfx in game. | 179 | // Identifiers for all sfx in game. |
179 | // | 180 | // |
180 | 181 | ||
181 | typedef enum { | 182 | enum { |
182 | sfx_None, | 183 | sfx_None, |
183 | sfx_pistol, | 184 | sfx_pistol, |
184 | sfx_shotgn, | 185 | sfx_shotgn, |
@@ -299,6 +300,7 @@ typedef enum { | |||
299 | #endif | 300 | #endif |
300 | 301 | ||
301 | NUMSFX | 302 | NUMSFX |
302 | } sfxenum_t; | 303 | }; |
304 | typedef unsigned sfxenum_t; | ||
303 | 305 | ||
304 | #endif | 306 | #endif |