From 3a9b8de2aba683184fdd9f3e20e8153354e882f5 Mon Sep 17 00:00:00 2001 From: Yamagi Date: Sat, 15 Apr 2023 19:57:26 +0200 Subject: [PATCH] Don't enforce a C standard in Makefile. This matches the behavior of cmake. Besides that we have some optional C11 code and it should be used if the compiler has support for it. And C99 as default is a remnant from the old times were we didn't want C11 in the standard code path, because several old Linux distros didn't support it... --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0abddcd2..242aabd2 100644 --- a/Makefile +++ b/Makefile @@ -163,7 +163,7 @@ endif # and the game code requires it. # -fvisibility=hidden to keep symbols hidden. This is # mostly best practice and not really necessary. -override CFLAGS += -std=gnu99 -fno-strict-aliasing -fwrapv -fvisibility=hidden +override CFLAGS += -fno-strict-aliasing -fwrapv -fvisibility=hidden # -MMD to generate header dependencies. Unsupported by # the Clang shipped with OS X.