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/d_player.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'apps/plugins/doom/d_player.h') diff --git a/apps/plugins/doom/d_player.h b/apps/plugins/doom/d_player.h index f86b68f9be..974d0b22ba 100644 --- a/apps/plugins/doom/d_player.h +++ b/apps/plugins/doom/d_player.h @@ -58,7 +58,7 @@ // // Player states. // -typedef enum +enum { // Playing or camping. PST_LIVE, @@ -67,13 +67,14 @@ typedef enum // Ready to restart/respawn??? PST_REBORN -} playerstate_t; +}; +typedef unsigned playerstate_t; // // Player internal flags, for cheats and debug. // -typedef enum +enum { // No clipping, walk through barriers. CF_NOCLIP = 1, @@ -82,7 +83,8 @@ typedef enum // Not really a cheat, just a debug aid. CF_NOMOMENTUM = 4 -} cheat_t; +}; +typedef unsigned cheat_t; // -- cgit v1.2.3