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:
jani
2003-03-19 12:37:46 +00:00
parent 441e9b8431
commit 0846206bc0
4 changed files with 13 additions and 12 deletions

View File

@@ -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 */
/*-----------------------------------------------------------------------------------*/