summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/p_tick.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-29 08:12:39 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-29 08:12:39 +0000
commit9c6e217f29bb0a76ec153574a3d493b020e5fb60 (patch)
treeb38acde6c091b7f8b0e3205645f9d232f19eeabb /apps/plugins/doom/p_tick.h
parent6980c1e9988a7c959876ad77b760e042272a9ec2 (diff)
downloadrockbox-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/p_tick.h')
-rw-r--r--apps/plugins/doom/p_tick.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/doom/p_tick.h b/apps/plugins/doom/p_tick.h
index 5a495166b3..f6e497a4ef 100644
--- a/apps/plugins/doom/p_tick.h
+++ b/apps/plugins/doom/p_tick.h
@@ -54,12 +54,13 @@ void P_UpdateThinker(thinker_t *thinker); // killough 8/29/98
54void P_SetTarget(mobj_t **mo, mobj_t *target); // killough 11/98 54void P_SetTarget(mobj_t **mo, mobj_t *target); // killough 11/98
55 55
56// killough 8/29/98: threads of thinkers, for more efficient searches 56// killough 8/29/98: threads of thinkers, for more efficient searches
57typedef enum { 57enum {
58 th_misc, 58 th_misc,
59 th_friends, 59 th_friends,
60 th_enemies, 60 th_enemies,
61 NUMTHCLASS 61 NUMTHCLASS
62} th_class; 62};
63typedef unsigned th_class;
63 64
64extern thinker_t thinkerclasscap[]; 65extern thinker_t thinkerclasscap[];
65 66