Build in C11 mode on Linux.
This commit is contained in:
parent
36a5c16dd2
commit
f152bf633e
1
Makefile
1
Makefile
|
@ -24,6 +24,7 @@ UNAME := $(shell uname)
|
||||||
|
|
||||||
ifeq ($(UNAME), Linux)
|
ifeq ($(UNAME), Linux)
|
||||||
LIBS+=-lrt
|
LIBS+=-lrt
|
||||||
|
CFLAGS+=-std=c11 -D_BSD_SOURCE=1 -D_POSIX_C_SOURCE=200809L
|
||||||
endif
|
endif
|
||||||
ifeq ($(UNAME), Darwin)
|
ifeq ($(UNAME), Darwin)
|
||||||
# TODO: Putting GCC in C11 mode breaks things.
|
# TODO: Putting GCC in C11 mode breaks things.
|
||||||
|
|
Loading…
Reference in a new issue