aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-08 11:39:21 +0200
committerMattias Andrée <maandree@kth.se>2022-07-08 11:39:21 +0200
commita265511bd974017c349e9806c4d6dcbbc4f83c21 (patch)
tree3920dda25a04205a3683e31b167a66b83b9bedca
parentCheck support for extensions (diff)
downloadlibsha1-a265511bd974017c349e9806c4d6dcbbc4f83c21.tar.gz
libsha1-a265511bd974017c349e9806c4d6dcbbc4f83c21.tar.bz2
libsha1-a265511bd974017c349e9806c4d6dcbbc4f83c21.tar.xz
Update to C11
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--config-coverage-gcc.mk2
-rw-r--r--config.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/config-coverage-gcc.mk b/config-coverage-gcc.mk
index 18de147..80c21b6 100644
--- a/config-coverage-gcc.mk
+++ b/config-coverage-gcc.mk
@@ -1,7 +1,7 @@
CONFIGFILE_PROPER = config.mk
include $(CONFIGFILE_PROPER)
-CC = $(CC_PREFIX)gcc -std=c99
+CC = $(CC_PREFIX)gcc -std=c11
GCOV = gcov
CFLAGS = -g -O0 -pedantic -fprofile-arcs -ftest-coverage
diff --git a/config.mk b/config.mk
index 9ec13d4..b398655 100644
--- a/config.mk
+++ b/config.mk
@@ -1,7 +1,7 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
-CC = c99
+CC = c11
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
CFLAGS = -Wall -O3 -msse4 -msha