games/doom: fix mips
This commit is contained in:
parent
82a797da70
commit
57ad566dfc
|
@ -25,14 +25,15 @@
|
||||||
|
|
||||||
static const char rcsid[] = "$Id: d_net.c,v 1.3 1997/02/03 22:01:47 b1 Exp $";
|
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 "m_menu.h"
|
||||||
#include "i_system.h"
|
#include "i_system.h"
|
||||||
#include "i_video.h"
|
#include "i_video.h"
|
||||||
#include "i_net.h"
|
#include "i_net.h"
|
||||||
|
#include "r_data.h"
|
||||||
#include "g_game.h"
|
#include "g_game.h"
|
||||||
#include "doomdef.h"
|
|
||||||
#include "doomstat.h"
|
|
||||||
|
|
||||||
#define NCMD_EXIT 0x80000000
|
#define NCMD_EXIT 0x80000000
|
||||||
#define NCMD_RETRANSMIT 0x40000000
|
#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_KILL 0x10000000 // kill game
|
||||||
#define NCMD_CHECKSUM 0x0fffffff
|
#define NCMD_CHECKSUM 0x0fffffff
|
||||||
|
|
||||||
|
|
||||||
doomcom_t* doomcom;
|
doomcom_t* doomcom;
|
||||||
doomdata_t* netbuffer; // points inside doomcom
|
doomdata_t* netbuffer; // points inside doomcom
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
|
|
||||||
#include "d_player.h"
|
#include "d_player.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma interface
|
#pragma interface
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -31,8 +31,8 @@ rcsid[] = "$Id: m_bbox.c,v 1.1 1997/02/03 22:45:10 b1 Exp $";
|
||||||
#include "m_swap.h"
|
#include "m_swap.h"
|
||||||
|
|
||||||
|
|
||||||
// Not needed with big endian.
|
// Not needed with little endian.
|
||||||
#ifndef __BIG_ENDIAN__
|
#ifdef __BIG_ENDIAN__
|
||||||
|
|
||||||
// Swap 16bit, that is, MSB and LSB byte.
|
// Swap 16bit, that is, MSB and LSB byte.
|
||||||
unsigned short SwapSHORT(unsigned short x)
|
unsigned short SwapSHORT(unsigned short x)
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
// Endianess handling.
|
// Endianess handling.
|
||||||
// WAD files are stored little endian.
|
// WAD files are stored little endian.
|
||||||
#ifdef __BIG_ENDIAN__
|
#ifdef __BIG_ENDIAN__
|
||||||
short SwapSHORT(short);
|
unsigned short SwapSHORT(unsigned short);
|
||||||
long SwapLONG(long);
|
unsigned long SwapLONG(unsigned long);
|
||||||
#define SHORT(x) ((short)SwapSHORT((unsigned short) (x)))
|
#define SHORT(x) ((short)SwapSHORT((unsigned short) (x)))
|
||||||
#define LONG(x) ((long)SwapLONG((unsigned long) (x)))
|
#define LONG(x) ((long)SwapLONG((unsigned long) (x)))
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -136,8 +136,7 @@ UPDATE=\
|
||||||
$HFILES\
|
$HFILES\
|
||||||
${OFILES:%.$O=%.c}\
|
${OFILES:%.$O=%.c}\
|
||||||
|
|
||||||
|
CFLAGS=$CFLAGS `{~ $objtype mips && echo -D__BIG_ENDIAN__}
|
||||||
|
|
||||||
</sys/src/cmd/mkone
|
</sys/src/cmd/mkone
|
||||||
|
|
||||||
d_net.$O : d_net.c
|
|
||||||
$CC -FVw d_net.c
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue