From 9c6e217f29bb0a76ec153574a3d493b020e5fb60 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 29 May 2010 08:12:39 +0000 Subject: 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 --- apps/plugins/doom/wi_stuff.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/plugins/doom/wi_stuff.h') diff --git a/apps/plugins/doom/wi_stuff.h b/apps/plugins/doom/wi_stuff.h index 72c1d32d07..595418f88d 100644 --- a/apps/plugins/doom/wi_stuff.h +++ b/apps/plugins/doom/wi_stuff.h @@ -38,13 +38,14 @@ // States for the intermission -typedef enum +enum { NoState = -1, StatCount, ShowNextLoc -} stateenum_t; +}; +typedef int stateenum_t; // Called by main loop, animate the intermission. void WI_Ticker (void); -- cgit v1.2.3