switch from c17 to gnu99

I am choosing gnu99 over c99, since I am planning to use GNU extensions,
like bswap. (in a future commit)
Why I choose c99 over c17, is because this'll produce more portable
code.

c99 does not implement noreturn.h, thus I added it to the compiler
attributes header.
This commit is contained in:
2025-06-02 12:15:49 +02:00
parent 42646baa1a
commit fc2cbd9924
3 changed files with 8 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ NAME := mcaselector-lite
VERSION := 0.0.0
DEBUG ?= 0
CC ?= cc
CFLAGS += -c -std=c17 -Wall -Wextra -Wpedantic -Ilib -MMD -MP
CFLAGS += -c -std=gnu99 -Wall -Wextra -Wpedantic -Ilib -MMD -MP
LDFLAGS +=
MARCH ?= $(shell uname -m)
KERNEL ?= $(shell uname -s | tr '[:upper:]' '[:lower:]')