forked from len0rd/rockbox
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
This commit is contained in:
parent
6980c1e998
commit
9c6e217f29
25 changed files with 260 additions and 191 deletions
|
@ -248,10 +248,11 @@ void P_UnArchiveWorld (void)
|
|||
// Thinkers
|
||||
//
|
||||
|
||||
typedef enum {
|
||||
enum {
|
||||
tc_end,
|
||||
tc_mobj
|
||||
} thinkerclass_t;
|
||||
};
|
||||
typedef unsigned thinkerclass_t;
|
||||
|
||||
// phares 9/13/98: Moved this code outside of P_ArchiveThinkers so the
|
||||
// thinker indices could be used by the code that saves sector info.
|
||||
|
@ -527,7 +528,8 @@ enum {
|
|||
tc_pusher, // phares 3/22/98: new push/pull effect thinker
|
||||
tc_flicker, // killough 10/4/98
|
||||
tc_endspecials
|
||||
} specials_e;
|
||||
};
|
||||
unsigned specials_e;
|
||||
|
||||
//
|
||||
// Things to handle:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue