diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-29 08:12:39 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-29 08:12:39 +0000 |
commit | 9c6e217f29bb0a76ec153574a3d493b020e5fb60 (patch) | |
tree | b38acde6c091b7f8b0e3205645f9d232f19eeabb /apps/plugins/doom/d_net.h | |
parent | 6980c1e9988a7c959876ad77b760e042272a9ec2 (diff) | |
download | rockbox-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.h | 11 |
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 | ||
61 | typedef enum | 61 | enum |
62 | { | 62 | { |
63 | CMD_SEND = 1, | 63 | CMD_SEND = 1, |
64 | CMD_GET = 2 | 64 | CMD_GET = 2 |
65 | 65 | }; | |
66 | } command_t; | 66 | typedef 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 | ||
128 | typedef enum { | 128 | enum { |
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 | }; |
133 | typedef unsigned netmisctype_t; | ||
133 | 134 | ||
134 | typedef struct | 135 | typedef struct |
135 | { | 136 | { |