From 786e118f060043eb62c6f94284d709620266a4e7 Mon Sep 17 00:00:00 2001 From: cpq Date: Sat, 20 Aug 2022 18:26:29 +0100 Subject: [PATCH] Include mongoose_custom.h early to allow overrides --- mongoose.h | 8 ++++---- src/arch.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mongoose.h b/mongoose.h index c4e06ec9..30cc8634 100644 --- a/mongoose.h +++ b/mongoose.h @@ -61,15 +61,15 @@ extern "C" { #define MG_ARCH MG_ARCH_RP2040 #endif +#if !defined(MG_ARCH) +#include +#endif + #if !defined(MG_ARCH) #error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..." #endif #endif // !defined(MG_ARCH) -#if MG_ARCH == MG_ARCH_CUSTOM -#include -#endif - diff --git a/src/arch.h b/src/arch.h index 485c4fde..01a98ba0 100644 --- a/src/arch.h +++ b/src/arch.h @@ -34,15 +34,15 @@ #define MG_ARCH MG_ARCH_RP2040 #endif +#if !defined(MG_ARCH) +#include +#endif + #if !defined(MG_ARCH) #error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..." #endif #endif // !defined(MG_ARCH) -#if MG_ARCH == MG_ARCH_CUSTOM -#include -#endif - #include "arch_esp32.h" #include "arch_esp8266.h" #include "arch_freertos_lwip.h"