From 9ffa9cce7311381f893d3ac03c7917f19f71cf5f Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 17 Dec 2020 14:28:50 +0100 Subject: [PATCH] lwip: Add warning to use ESP_IDF_LWIP_HOOK_FILENAME if LWIP_HOOK_FILENAME defined --- components/lwip/port/esp32/include/lwipopts.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/lwip/port/esp32/include/lwipopts.h b/components/lwip/port/esp32/include/lwipopts.h index 3480ef0cbd..451ef96fee 100644 --- a/components/lwip/port/esp32/include/lwipopts.h +++ b/components/lwip/port/esp32/include/lwipopts.h @@ -767,6 +767,9 @@ ---------- Hook options --------------- --------------------------------------- */ +#ifdef LWIP_HOOK_FILENAME +#warning LWIP_HOOK_FILENAME is used for IDF default hooks. Please use ESP_IDF_LWIP_HOOK_FILENAME to insert additional hook +#endif #define LWIP_HOOK_FILENAME "lwip_default_hooks.h" #define LWIP_HOOK_IP4_ROUTE_SRC ip4_route_src_hook