[Add] _POSIX_SOURCE if we are on Linux.
This commit is contained in:
parent
7e0963ad35
commit
4b70ff9137
@ -25,6 +25,9 @@ CAL = -lopenal $(shell freealut-config --cflags)
|
||||
CVORBIS =
|
||||
CGL =
|
||||
CFLAGS = $(CLUA) $(CPLUTO) $(CSDL) $(CXML) $(CTTF) $(CGL) $(CAL) $(CVORBIS) $(VERSION) -D$(OS)
|
||||
ifeq ($(OS),LINUX)
|
||||
CFLAGS += -D_POSIX_SOURCE
|
||||
endif
|
||||
ifdef DEBUG
|
||||
CFLAGS += -W -Wall -Wextra -Wmissing-prototypes -Winline -Wcast-align \
|
||||
-Wmissing-declarations -fno-inline -g3 -DDEBUG -DLUA_USE_APICHECK -std=c99
|
||||
|
Loading…
Reference in New Issue
Block a user