Include the rimestats variable only if rimestats are enabled by the configuration

This commit is contained in:
Adam Dunkels 2013-03-17 23:53:46 +01:00
parent 4efd570cf9
commit 843d2361dc

View file

@ -55,8 +55,11 @@ struct rimestats {
unsigned long lltx, llrx; unsigned long lltx, llrx;
}; };
#if RIMESTATS_CONF_ENABLED
extern struct rimestats rimestats; extern struct rimestats rimestats;
#define RIMESTATS_ADD(x) rimestats.x++ #define RIMESTATS_ADD(x) rimestats.x++
#else /* RIMESTATS_CONF_ENABLED */
#define RIMESTATS_ADD(x)
#endif /* RIMESTATS_CONF_ENABLED */
#endif /* __RIMESTATS_H__ */ #endif /* __RIMESTATS_H__ */