From 771b11f775577d9560fadd1b59640e8eec5a670f Mon Sep 17 00:00:00 2001 From: Peter Huewe Date: Thu, 22 Mar 2018 22:31:06 +0100 Subject: [PATCH] Make eltt2 c99 compliant Some implicit headerfiles were missing, if used without -std=gnu99. Since we do not rely on gnu99 behavior by including the header files, we can use -std=c99, which we state explicitly in the Makefile now. Signed-off-by: Peter Huewe --- Makefile | 2 +- eltt2.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 987ee9b..995311f 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Copyright (c) Infineon Technologies AG CC=gcc -CFLAGS=-Wall -Wextra -g +CFLAGS=-Wall -Wextra -std=c99 -g all: eltt2 diff --git a/eltt2.h b/eltt2.h index e9ca42e..7cff7c0 100644 --- a/eltt2.h +++ b/eltt2.h @@ -67,8 +67,10 @@ #include #include #include +#include #include #include +#include //-------------"Defines"------------- #define TPM_RESP_MAX_SIZE 4096 ///< This is the maximum possible TPM response size in bytes.