Makefile: add POSIX macro to CFLAGS

Declare macro `_POSIX_C_SOURCE` to `200809L` during compilation
This commit is contained in:
Intel A80486DX2-66 2024-07-07 01:08:41 +03:00
parent dfc2484164
commit 106646a98f
Signed by: 80486DX2-66
GPG key ID: 83631EF27054609B

View file

@ -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