Skip to content

Commit 4801226

Browse files
committed
remove bool define and require c99 to silence
1 parent 920d85a commit 4801226

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MSBUILD := MSBuild.exe
44
DEFINES := -DDR_MULTIPLAYER -DIPXNET -DDR_LETTERBOX #-DDR_CDCHECK
55
INCLUDES := -I/usr/include/SDL2
66
FLAGS ?= -O3
7-
FLAGS += -Werror -Wno-unused-result
7+
FLAGS += -std=c99 -Werror -Wno-unused-result
88
LDFLAGS := -lm -lSDL2 -lSDL2_net
99

1010
OBJS := data.o bss.o

db_ipx.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <stdio.h>
22
#include <string.h>
3+
#include <stdbool.h>
34

45
#include "drally_ipx.h"
56

@@ -12,10 +13,6 @@
1213

1314
#define CONVIPX(hostvar) hostvar[0], hostvar[1], hostvar[2], hostvar[3], hostvar[4], hostvar[5]
1415

15-
typedef int bool;
16-
#define true 1
17-
#define false 0
18-
1916
typedef unsigned char Bit8u;
2017
typedef signed short Bit16s;
2118
typedef unsigned short Bit16u;

0 commit comments

Comments
 (0)