mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-01 18:37:10 +03:00
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.
21 lines
488 B
Plaintext
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_ */
|