coap_config.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* coap_config.h
  2. *
  3. * Copyright (C) 2012,2014 Olaf Bergmann <bergmann@tzi.org>
  4. *
  5. * This file is part of the CoAP library libcoap. Please see
  6. * README for terms of use.
  7. */
  8. #ifndef __COAP_CONFIG_H__
  9. #define __COAP_CONFIG_H__
  10. #include <rtthread.h>
  11. // Defined in SConscript's CPPDEFINES
  12. #ifdef WITH_POSIX
  13. #include <sys/socket.h>
  14. #define HAVE_MALLOC
  15. #define IP_PKTINFO IP_MULTICAST_IF
  16. // #define IPV6_PKTINFO IPV6_V6ONLY
  17. #define PACKAGE_NAME "libcoap"
  18. #define PACKAGE_VERSION "@b425b150"
  19. #define CUSTOM_COAP_NETWORK_ENDPOINT
  20. #define CUSTOM_COAP_NETWORK_SEND
  21. #define CUSTOM_COAP_NETWORK_READ
  22. #endif
  23. #define HAVE_STDIO_H
  24. #define HAVE_ASSERT_H
  25. #define PACKAGE_STRING PACKAGE_NAME PACKAGE_VERSION
  26. // #define assert(x) LWIP_ASSERT("CoAP assert failed", x)
  27. /* it's just provided by libc. i hope we don't get too many of those, as
  28. * actually we'd need autotools again to find out what environment we're
  29. * building in */
  30. #define HAVE_STRNLEN 1
  31. #define HAVE_LIMITS_H
  32. #define COAP_RESOURCES_NOHASH
  33. #endif /* _CONFIG_H_ */