Skip to content

Commit a74bd56

Browse files
committed
Remove NORMALUNIX define
1 parent 04f4837 commit a74bd56

File tree

6 files changed

+4
-29
lines changed

6 files changed

+4
-29
lines changed

src/d_main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ rcsid[] = "$Id: d_main.c,v 1.8 1997/02/03 22:45:09 b1 Exp $";
3333
#define FGCOLOR 8
3434

3535

36-
#ifdef NORMALUNIX
3736
#include <stdio.h>
3837
#include <stdlib.h>
3938
#include <unistd.h>
4039
#include <sys/types.h>
4140
#include <sys/stat.h>
4241
#include <fcntl.h>
43-
#endif
4442

4543

4644
#include "doomdef.h"
@@ -580,7 +578,6 @@ void IdentifyVersion (void)
580578
char* plutoniawad;
581579
char* tntwad;
582580

583-
#ifdef NORMALUNIX
584581
char *home;
585582
char *doomwaddir;
586583
doomwaddir = getenv("DOOMWADDIR");
@@ -627,7 +624,6 @@ void IdentifyVersion (void)
627624
sprintf(basedefault, "%s/.doomrc", home);
628625
else
629626
sprintf(basedefault, "doomrc");
630-
#endif
631627

632628
if (M_CheckParm ("-shdev"))
633629
{

src/d_net.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ unsigned NetbufferChecksum (void)
104104
c = 0x1234567;
105105

106106
// FIXME -endianess?
107-
#ifdef NORMALUNIX
108107
return 0; // byte order problems
109-
#endif
110108

111109
l = (NetbufferSize () - (int)&(((doomdata_t *)0)->retransmitfrom))/4;
112110
for (i=0 ; i<l ; i++)

src/m_misc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ default_t defaults[] =
235235
{"show_messages",&showMessages, 1},
236236

237237

238-
#ifdef NORMALUNIX
239238
{"key_right",&key_right, KEY_RIGHTARROW},
240239
{"key_left",&key_left, KEY_LEFTARROW},
241240
{"key_up",&key_up, KEY_UPARROW},
@@ -252,8 +251,6 @@ default_t defaults[] =
252251
#ifdef SNDSERV
253252
{"sndserver", (int *) &sndserver_filename, (int) "sndserver"},
254253
{"mb_used", &mb_used, 2},
255-
#endif
256-
257254
#endif
258255

259256
{"use_mouse",&usemouse, 1},

src/riscv/Makefile

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ CROSS ?= riscv-none-embed-
33
CC = $(CROSS)gcc
44
OBJCOPY = $(CROSS)objcopy
55
SIZE = $(CROSS)size
6-
ICEPROG = iceprog
76

7+
# RISC-V specific options
88
CFLAGS=-Wall -O2 -march=rv32im -mabi=ilp32 -ffreestanding -flto -fomit-frame-pointer -Wl,--gc-section --specs=nano.specs -I..
99

10-
CFLAGS += \
11-
-DNORMALUNIX \
12-
$(NULL)
13-
10+
# resolution
1411
CFLAGS += -DSCREENWIDTH=640 -DSCREENHEIGHT=360
1512

1613
include ../sources.mk
@@ -30,8 +27,7 @@ SOURCES_doom_arch := \
3027
i_system.c \
3128
i_video.c \
3229
s_sound.c \
33-
console.c \
34-
$(NULL)
30+
console.c
3531

3632

3733
all: doom-riscv.elf
@@ -47,12 +43,5 @@ clean:
4743
%.bin: %.elf
4844
$(OBJCOPY) -O binary $< $@
4945

50-
prog: doom-riscv.bin
51-
$(ICEPROG) -o 1M $<
52-
53-
prog_wad: data/doomu.wad
54-
$(ICEPROG) -o 2M $<
55-
56-
57-
.PHONY: all clean prog prog_wad
46+
.PHONY: all clean
5847
.PRECIOUS: *.elf

src/riscv/d_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ rcsid[] = "$Id: d_main.c,v 1.8 1997/02/03 22:45:09 b1 Exp $";
3333
#define FGCOLOR 8
3434

3535

36-
#ifdef NORMALUNIX
3736
#include <stdio.h>
3837
#include <stdlib.h>
3938
#include <unistd.h>
4039
#include <sys/types.h>
4140
#include <sys/stat.h>
4241
#include <fcntl.h>
43-
#endif
4442

4543

4644
#include "doomdef.h"

src/w_wad.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
static const char __attribute__((unused))
2626
rcsid[] = "$Id: w_wad.c,v 1.5 1997/02/03 16:47:57 b1 Exp $";
2727

28-
29-
#ifdef NORMALUNIX
3028
#include <ctype.h>
3129
#include <sys/types.h>
3230
#include <string.h>
@@ -36,7 +34,6 @@ rcsid[] = "$Id: w_wad.c,v 1.5 1997/02/03 16:47:57 b1 Exp $";
3634
#include <sys/stat.h>
3735
#include <alloca.h>
3836
#define O_BINARY 0
39-
#endif
4037

4138
#include "doomdef.h"
4239
#include "doomtype.h"

0 commit comments

Comments
 (0)