Files
libcoap/config.h.lwip
T
chrysn 8fac6ed0fa introduce WITH_POSIX (as compared to WITH_COAP etc)
this will make reading the ifdefed sections easier.

as the typedef struct __coap_address_t {...}; /
define coap_address_t __coap_address_t trick is not needed any more to
detect whether a WITH defined coap_address_t or not, it was removed.
2013-11-17 16:32:09 +01:00

21 lines
488 B
Plaintext

#ifndef _CONFIG_H_
#define _CONFIG_H_
#include <lwip/opt.h>
#include <lwip/debug.h>
#include <lwip/def.h> /* provide ntohs, htons */
#define WITH_LWIP 1
#define assert(x) LWIP_ASSERT("CoAP assert failed", x)
/* it's just provided by libc. i hope we don't get too many of those, as
* actually we'd need autotools again to find out what environment we're
* building in */
#define HAVE_STRNLEN 1
/* FIXME just a quick hack */
#define COAP_TICKS_PER_SECOND 10
#endif /* _CONFIG_H_ */