Include mongoose_custom.h early to allow overrides

This commit is contained in:
cpq 2022-08-20 18:26:29 +01:00
parent eca612d514
commit 786e118f06
2 changed files with 8 additions and 8 deletions

View File

@ -61,15 +61,15 @@ extern "C" {
#define MG_ARCH MG_ARCH_RP2040 #define MG_ARCH MG_ARCH_RP2040
#endif #endif
#if !defined(MG_ARCH)
#include <mongoose_custom.h>
#endif
#if !defined(MG_ARCH) #if !defined(MG_ARCH)
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..." #error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
#endif #endif
#endif // !defined(MG_ARCH) #endif // !defined(MG_ARCH)
#if MG_ARCH == MG_ARCH_CUSTOM
#include <mongoose_custom.h>
#endif

View File

@ -34,15 +34,15 @@
#define MG_ARCH MG_ARCH_RP2040 #define MG_ARCH MG_ARCH_RP2040
#endif #endif
#if !defined(MG_ARCH)
#include <mongoose_custom.h>
#endif
#if !defined(MG_ARCH) #if !defined(MG_ARCH)
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..." #error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
#endif #endif
#endif // !defined(MG_ARCH) #endif // !defined(MG_ARCH)
#if MG_ARCH == MG_ARCH_CUSTOM
#include <mongoose_custom.h>
#endif
#include "arch_esp32.h" #include "arch_esp32.h"
#include "arch_esp8266.h" #include "arch_esp8266.h"
#include "arch_freertos_lwip.h" #include "arch_freertos_lwip.h"