_DARWIN_C_SOURCE must be defined when compiling for Mac with -std=c99
This commit is contained in:
parent
7fca0bb95a
commit
8ddf72164b
@ -30,11 +30,15 @@ buildir := $(realpath .)/build
|
||||
binsubdir := $(platform)-$(architecture)
|
||||
bindir := $(prefix)/bin/$(binsubdir)
|
||||
|
||||
CFLAGS := -O2 -g -Wall -pedantic -Werror -std=c99 -D_XOPEN_SOURCE=500
|
||||
CFLAGS := -O2 -g -Wall -pedantic -Werror -std=c99
|
||||
CXXFLAGS := -O2 -g -Wall -pedantic -Werror
|
||||
|
||||
ifeq ($(platform),linux)
|
||||
override LDFLAGS := $(LDFLAGS) -ldl
|
||||
CFLAGS +=-D_XOPEN_SOURCE=500
|
||||
endif
|
||||
ifeq ($(platform),mac)
|
||||
CFLAGS +=-D_DARWIN_C_SOURCE
|
||||
endif
|
||||
|
||||
ifeq ($(platform),mac)
|
||||
|
Loading…
x
Reference in New Issue
Block a user