From 3e278238acf649e6a583d94ddabaefef35a38bcd Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Fri, 24 Nov 2023 13:30:19 +0100 Subject: [PATCH 1/3] nanocbor: Use inttypes for uint8_t etc --- include/nanocbor/nanocbor.h | 2 +- src/decoder.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nanocbor/nanocbor.h b/include/nanocbor/nanocbor.h index 6ccf7d1..218f920 100644 --- a/include/nanocbor/nanocbor.h +++ b/include/nanocbor/nanocbor.h @@ -30,8 +30,8 @@ #ifndef NANOCBOR_NANOCBOR_H #define NANOCBOR_NANOCBOR_H +#include #include -#include #include #ifdef __cplusplus diff --git a/src/decoder.c b/src/decoder.c index de06302..18f23e4 100644 --- a/src/decoder.c +++ b/src/decoder.c @@ -12,6 +12,7 @@ * @} */ +#include #include #include #include From 0120e6117c5ace7385a53dde7b14ba74e979e339 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Fri, 24 Nov 2023 13:27:49 +0100 Subject: [PATCH 2/3] tests/encode: Add stdbool header --- tests/encode/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/encode/main.c b/tests/encode/main.c index 25a3747..74782d3 100644 --- a/tests/encode/main.c +++ b/tests/encode/main.c @@ -2,11 +2,11 @@ * SPDX-License-Identifier: CC0-1.0 */ +#include #include #include #include #include -#include #include "nanocbor/nanocbor.h" From 85771c6c7fc72f17f960487ef9ec79d2e017cefa Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Fri, 24 Nov 2023 13:45:54 +0100 Subject: [PATCH 3/3] tests/automated: fix include headers --- tests/automated/test_decoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/automated/test_decoder.c b/tests/automated/test_decoder.c index 3f156c1..a441319 100644 --- a/tests/automated/test_decoder.c +++ b/tests/automated/test_decoder.c @@ -5,6 +5,8 @@ #include "nanocbor/nanocbor.h" #include "test.h" #include +#include +#include /* NOLINTBEGIN(cppcoreguidelines-avoid-magic-numbers) */