mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-17 05:36:46 +08:00
rename STATS to LWIP_STATS and make it checked by #if not #ifdef.The rest of the _STATS defines should follow
This commit is contained in:
@@ -39,15 +39,13 @@
|
||||
#include "lwip/mem.h"
|
||||
|
||||
|
||||
#ifdef STATS
|
||||
#if LWIP_STATS
|
||||
struct stats_ lwip_stats;
|
||||
#endif /* STATS */
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
void
|
||||
stats_init(void)
|
||||
{
|
||||
#ifdef STATS
|
||||
memset(&lwip_stats, 0, sizeof(struct stats_));
|
||||
#endif /* STATS */
|
||||
}
|
||||
#endif /* LWIP_STATS */
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user