Merged from trunk: use a define to set/reset netif->addr_hint to prevent too many #ifdef's in the code

This commit is contained in:
goldsimon
2011-12-14 21:48:06 +01:00
parent a91d8e7395
commit d3ee77e7b1
6 changed files with 17 additions and 25 deletions

View File

@@ -315,6 +315,12 @@ void netif_poll_all(void);
#endif /* !LWIP_NETIF_LOOPBACK_MULTITHREADING */
#endif /* ENABLE_LOOPBACK */
#if LWIP_NETIF_HWADDRHINT
#define NETIF_SET_HWADDRHINT(netif, hint) ((netif)->addr_hint = (hint))
#else /* LWIP_NETIF_HWADDRHINT */
#define NETIF_SET_HWADDRHINT(netif, hint)
#endif /* LWIP_NETIF_HWADDRHINT */
#ifdef __cplusplus
}
#endif