summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/d_net.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/d_net.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/d_net.h')
-rw-r--r--apps/plugins/doom/d_net.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/plugins/doom/d_net.h b/apps/plugins/doom/d_net.h
index 6b586e3c96..e43aaf112f 100644
--- a/apps/plugins/doom/d_net.h
+++ b/apps/plugins/doom/d_net.h
@@ -58,12 +58,12 @@
58// Networking and tick handling related. 58// Networking and tick handling related.
59#define BACKUPTICS 12 59#define BACKUPTICS 12
60 60
61typedef enum 61enum
62{ 62{
63 CMD_SEND = 1, 63 CMD_SEND = 1,
64 CMD_GET = 2 64 CMD_GET = 2
65 65};
66} command_t; 66typedef unsigned command_t;
67 67
68 68
69// 69//
@@ -125,11 +125,12 @@ typedef struct
125 char filler[sizeof(ticcmd_t)*BACKUPTICS-STARTUPLEN]; 125 char filler[sizeof(ticcmd_t)*BACKUPTICS-STARTUPLEN];
126} startup_t; 126} startup_t;
127 127
128typedef enum { 128enum {
129 // Leave space, so low values corresponding to normal netgame setup packets can be ignored 129 // Leave space, so low values corresponding to normal netgame setup packets can be ignored
130 nm_plcolour = 3, 130 nm_plcolour = 3,
131 nm_savegamename = 4, 131 nm_savegamename = 4,
132} netmisctype_t; 132};
133typedef unsigned netmisctype_t;
133 134
134typedef struct 135typedef struct
135{ 136{