Implement task #14367: Hooks need a better place to be defined

We now have a #define for a header file name that is #included in every .c file that provides hooks.
This commit is contained in:
Dirk Ziegelmeier
2017-02-10 13:25:04 +01:00
parent bc07fd9db5
commit 239498f37c
9 changed files with 41 additions and 1 deletions

View File

@@ -60,6 +60,10 @@
#include "lwip/debug.h"
#include "lwip/stats.h"
#ifdef LWIP_HOOK_FILENAME
#include LWIP_HOOK_FILENAME
#endif
/**
* Finds the appropriate network interface for a given IPv6 address. It tries to select
* a netif following a sequence of heuristics:

View File

@@ -64,6 +64,10 @@
#include <string.h>
#ifdef LWIP_HOOK_FILENAME
#include LWIP_HOOK_FILENAME
#endif
#if LWIP_IPV6_DUP_DETECT_ATTEMPTS > IP6_ADDR_TENTATIVE_COUNT_MASK
#error LWIP_IPV6_DUP_DETECT_ATTEMPTS > IP6_ADDR_TENTATIVE_COUNT_MASK
#endif