shithub: pokecrystal

Download patch

ref: 7d40476e14542163830cfb60d4b84787d1123797
parent: 960642ce7341b7dbd0b58d020c77bde0b8a09025
author: mid-kid <esteve.varela@gmail.com>
date: Tue Sep 7 11:34:38 EDT 2021

Drop C standard for tools/ to C11

Nothing has changed in c17 beyond minor standards corrections, so
there's no advantage in specifying c17 over c11.

--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,7 +1,7 @@
 .PHONY: all clean
 
 CC := gcc
-CFLAGS := -O3 -std=c17 -Wall -Wextra -pedantic -Wno-missing-field-initializers
+CFLAGS := -O3 -std=c11 -Wall -Wextra -pedantic -Wno-missing-field-initializers
 
 tools := \
 	lzcomp \
@@ -19,7 +19,7 @@
 
 gfx: common.h
 
-lzcomp: CFLAGS = -O3 -flto -std=c17 -Wall -Wextra -pedantic -Wno-strict-overflow -Wno-sign-compare
+lzcomp: CFLAGS = -O3 -flto -std=c11 -Wall -Wextra -pedantic -Wno-strict-overflow -Wno-sign-compare
 lzcomp: $(wildcard lz/*.c) $(wildcard lz/*.h)
 	$(CC) $(CFLAGS) -o $@ lz/*.c