Skip to content

Commit 1f43280

Browse files
committed
use stdbool.h and __USE_POSIX for time.h
1 parent 920d85a commit 1f43280

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-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;

drally.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <stdlib.h>
66
#include <string.h>
77
#include <math.h>
8+
#define __USE_POSIX 1
89
#include <time.h>
910
#include <ctype.h>
1011
#include <SDL2/SDL.h>

0 commit comments

Comments
 (0)