1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-09-19 02:25:33 +05:30

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