Makefile: add POSIX macro to CFLAGS
Declare macro `_POSIX_C_SOURCE` to `200809L` during compilation
This commit is contained in:
parent
dfc2484164
commit
106646a98f
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -1,7 +1,8 @@
|
|||
CC ?= gcc
|
||||
DEBUG ?= 0
|
||||
|
||||
CFLAGS = -Wall -Werror -Wextra -Wpedantic -std=c99 -Ofast
|
||||
CFLAGS = -Wall -Werror -Wextra -Wpedantic -std=c99 -Ofast \
|
||||
-D_POSIX_C_SOURCE=200809L
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -g -DDEBUG
|
||||
|
|
Loading…
Reference in a new issue