games/doom: fix mips

This commit is contained in:
cinap_lenrek 2015-04-17 22:19:23 +02:00
parent 82a797da70
commit 57ad566dfc
5 changed files with 9 additions and 11 deletions

View file

@ -25,14 +25,15 @@
static const char rcsid[] = "$Id: d_net.c,v 1.3 1997/02/03 22:01:47 b1 Exp $";
#include "doomdef.h"
#include "doomstat.h"
#include "m_menu.h"
#include "i_system.h"
#include "i_video.h"
#include "i_net.h"
#include "r_data.h"
#include "g_game.h"
#include "doomdef.h"
#include "doomstat.h"
#define NCMD_EXIT 0x80000000
#define NCMD_RETRANSMIT 0x40000000
@ -40,7 +41,6 @@ static const char rcsid[] = "$Id: d_net.c,v 1.3 1997/02/03 22:01:47 b1 Exp $";
#define NCMD_KILL 0x10000000 // kill game
#define NCMD_CHECKSUM 0x0fffffff
doomcom_t* doomcom;
doomdata_t* netbuffer; // points inside doomcom

View file

@ -25,7 +25,6 @@
#include "d_player.h"
#ifdef __GNUG__
#pragma interface
#endif

View file

@ -31,8 +31,8 @@ rcsid[] = "$Id: m_bbox.c,v 1.1 1997/02/03 22:45:10 b1 Exp $";
#include "m_swap.h"
// Not needed with big endian.
#ifndef __BIG_ENDIAN__
// Not needed with little endian.
#ifdef __BIG_ENDIAN__
// Swap 16bit, that is, MSB and LSB byte.
unsigned short SwapSHORT(unsigned short x)

View file

@ -32,8 +32,8 @@
// Endianess handling.
// WAD files are stored little endian.
#ifdef __BIG_ENDIAN__
short SwapSHORT(short);
long SwapLONG(long);
unsigned short SwapSHORT(unsigned short);
unsigned long SwapLONG(unsigned long);
#define SHORT(x) ((short)SwapSHORT((unsigned short) (x)))
#define LONG(x) ((long)SwapLONG((unsigned long) (x)))
#else

View file

@ -136,8 +136,7 @@ UPDATE=\
$HFILES\
${OFILES:%.$O=%.c}\
CFLAGS=$CFLAGS `{~ $objtype mips && echo -D__BIG_ENDIAN__}
</sys/src/cmd/mkone
d_net.$O : d_net.c
$CC -FVw d_net.c