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_random.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/m_random.h')
-rw-r--r-- | apps/plugins/doom/m_random.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/doom/m_random.h b/apps/plugins/doom/m_random.h index 67c1a3ba4b..b99dd1793c 100644 --- a/apps/plugins/doom/m_random.h +++ b/apps/plugins/doom/m_random.h | |||
@@ -57,7 +57,7 @@ | |||
57 | // indicated by the #'s, because they're critical for preserving demo | 57 | // indicated by the #'s, because they're critical for preserving demo |
58 | // sync. Do not remove entries simply because they become unused later. | 58 | // sync. Do not remove entries simply because they become unused later. |
59 | 59 | ||
60 | typedef enum { | 60 | enum { |
61 | pr_skullfly, // #1 | 61 | pr_skullfly, // #1 |
62 | pr_damage, // #2 | 62 | pr_damage, // #2 |
63 | pr_crush, // #3 | 63 | pr_crush, // #3 |
@@ -124,7 +124,8 @@ typedef enum { | |||
124 | 124 | ||
125 | // End of new entries | 125 | // End of new entries |
126 | NUMPRCLASS // MUST be last item in list | 126 | NUMPRCLASS // MUST be last item in list |
127 | } pr_class_t; | 127 | }; |
128 | typedef unsigned pr_class_t; | ||
128 | 129 | ||
129 | // The random number generator's state. | 130 | // The random number generator's state. |
130 | typedef struct { | 131 | typedef struct { |