From 943e1c5f77a10f1a7716d2efbe0ccacd44694e12 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Mon, 26 Feb 2024 12:05:35 +0000 Subject: [PATCH] Adopt arch_freertos.h for CCRH compiler --- mongoose.h | 5 +++-- src/arch_freertos.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mongoose.h b/mongoose.h index 4899563c..65dbb393 100644 --- a/mongoose.h +++ b/mongoose.h @@ -179,12 +179,13 @@ extern "C" { #include #include #include -#include // rand(), strtol(), atoi() +#include // rand(), strtol(), atoi() #include #if defined(__ARMCC_VERSION) #define mode_t size_t -#include #include +#include +#elif defined(__CCRH__) #else #include #endif diff --git a/src/arch_freertos.h b/src/arch_freertos.h index 883e996a..c82bafaf 100644 --- a/src/arch_freertos.h +++ b/src/arch_freertos.h @@ -11,12 +11,13 @@ #include #include #include -#include // rand(), strtol(), atoi() +#include // rand(), strtol(), atoi() #include #if defined(__ARMCC_VERSION) #define mode_t size_t -#include #include +#include +#elif defined(__CCRH__) #else #include #endif