Added #if LWIP_SNMP around snmp-internal header files

This commit is contained in:
goldsimon 2009-05-06 15:35:13 +00:00
parent bdd5586cee
commit 518b18dad0
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,8 @@
#include "lwip/pbuf.h"
#include "lwip/snmp.h"
#if LWIP_SNMP
#ifdef __cplusplus
extern "C" {
#endif
@ -94,4 +96,6 @@ err_t snmp_asn1_enc_raw(struct pbuf *p, u16_t ofs, u8_t raw_len, u8_t *raw);
}
#endif
#endif /* LWIP_SNMP */
#endif /* __LWIP_SNMP_ASN1_H__ */

View File

@ -39,6 +39,8 @@
#include "lwip/snmp.h"
#include "lwip/snmp_structs.h"
#if LWIP_SNMP
#if SNMP_PRIVATE_MIB
#include "private_mib.h"
#endif
@ -304,4 +306,6 @@ void snmp_authfail_trap(void);
}
#endif
#endif /* LWIP_SNMP */
#endif /* __LWIP_SNMP_MSG_H__ */