1c87c5fbaSopenharmony_ci/* 2c87c5fbaSopenharmony_ci * coap_config.h.windows -- Windows configuration for libcoap 3c87c5fbaSopenharmony_ci * 4c87c5fbaSopenharmony_ci * Copyright (C) 2017-2023 Olaf Bergmann <bergmann@tzi.org> and others 5c87c5fbaSopenharmony_ci * 6c87c5fbaSopenharmony_ci * SPDX-License-Identifier: BSD-2-Clause 7c87c5fbaSopenharmony_ci * 8c87c5fbaSopenharmony_ci * This file is part of the CoAP library libcoap. Please see README for terms 9c87c5fbaSopenharmony_ci * of use. 10c87c5fbaSopenharmony_ci */ 11c87c5fbaSopenharmony_ci 12c87c5fbaSopenharmony_ci#ifndef COAP_CONFIG_H_ 13c87c5fbaSopenharmony_ci#define COAP_CONFIG_H_ 14c87c5fbaSopenharmony_ci 15c87c5fbaSopenharmony_ci#if defined(_WIN32) 16c87c5fbaSopenharmony_ci 17c87c5fbaSopenharmony_ci/* Define to 1 if you have <ws2tcpip.h> header file. */ 18c87c5fbaSopenharmony_ci#define HAVE_WS2TCPIP_H 1 19c87c5fbaSopenharmony_ci 20c87c5fbaSopenharmony_ci/* Define to 1 if you have <winsock2.h> header file. */ 21c87c5fbaSopenharmony_ci#define HAVE_WINSOCK2_H 1 22c87c5fbaSopenharmony_ci 23c87c5fbaSopenharmony_ci/* Define to 1 if you have the <assert.h> header file. */ 24c87c5fbaSopenharmony_ci#define HAVE_ASSERT_H 1 25c87c5fbaSopenharmony_ci 26c87c5fbaSopenharmony_ci/* Define to 1 if you have the `getaddrinfo' function. */ 27c87c5fbaSopenharmony_ci#define HAVE_GETADDRINFO 1 28c87c5fbaSopenharmony_ci 29c87c5fbaSopenharmony_ci/* Define to 1 if you have the <inttypes.h> header file. */ 30c87c5fbaSopenharmony_ci#define HAVE_INTTYPES_H 1 31c87c5fbaSopenharmony_ci 32c87c5fbaSopenharmony_ci/* Define to 1 if you have the <limits.h> header file. */ 33c87c5fbaSopenharmony_ci#define HAVE_LIMITS_H 1 34c87c5fbaSopenharmony_ci 35c87c5fbaSopenharmony_ci/* Define to 1 if you have the `malloc' function. */ 36c87c5fbaSopenharmony_ci#define HAVE_MALLOC 1 37c87c5fbaSopenharmony_ci 38c87c5fbaSopenharmony_ci/* Define to 1 if you have the <memory.h> header file. */ 39c87c5fbaSopenharmony_ci#define HAVE_MEMORY_H 1 40c87c5fbaSopenharmony_ci 41c87c5fbaSopenharmony_ci/* Define to 1 if you have the `memset' function. */ 42c87c5fbaSopenharmony_ci#define HAVE_MEMSET 1 43c87c5fbaSopenharmony_ci 44c87c5fbaSopenharmony_ci/* Define to 1 if you have the `select' function. */ 45c87c5fbaSopenharmony_ci#define HAVE_SELECT 1 46c87c5fbaSopenharmony_ci 47c87c5fbaSopenharmony_ci/* Define to 1 if you have the `socket' function. */ 48c87c5fbaSopenharmony_ci#define HAVE_SOCKET 1 49c87c5fbaSopenharmony_ci 50c87c5fbaSopenharmony_ci/* Define to 1 if you have the <stdint.h> header file. */ 51c87c5fbaSopenharmony_ci#define HAVE_STDINT_H 1 52c87c5fbaSopenharmony_ci 53c87c5fbaSopenharmony_ci/* Define to 1 if you have the <stdlib.h> header file. */ 54c87c5fbaSopenharmony_ci#define HAVE_STDLIB_H 1 55c87c5fbaSopenharmony_ci 56c87c5fbaSopenharmony_ci/* Define to 1 if you have the <string.h> header file. */ 57c87c5fbaSopenharmony_ci#define HAVE_STRING_H 1 58c87c5fbaSopenharmony_ci 59c87c5fbaSopenharmony_ci/* Define to 1 if you have the `strnlen' function. */ 60c87c5fbaSopenharmony_ci#define HAVE_STRNLEN 1 61c87c5fbaSopenharmony_ci 62c87c5fbaSopenharmony_ci/* Define to 1 if you have the `strrchr' function. */ 63c87c5fbaSopenharmony_ci#define HAVE_STRRCHR 1 64c87c5fbaSopenharmony_ci 65c87c5fbaSopenharmony_ci/* Define to 1 if the system has the type `struct cmsghdr'. */ 66c87c5fbaSopenharmony_ci#define HAVE_STRUCT_CMSGHDR 1 67c87c5fbaSopenharmony_ci 68c87c5fbaSopenharmony_ci/* Define to 1 if you have the <sys/stat.h> header file. */ 69c87c5fbaSopenharmony_ci#define HAVE_SYS_STAT_H 1 70c87c5fbaSopenharmony_ci 71c87c5fbaSopenharmony_ci/* Define to 1 if you have the <sys/types.h> header file. */ 72c87c5fbaSopenharmony_ci#define HAVE_SYS_TYPES_H 1 73c87c5fbaSopenharmony_ci 74c87c5fbaSopenharmony_ci/* Define to 1 if you have the <time.h> header file. */ 75c87c5fbaSopenharmony_ci#define HAVE_TIME_H 1 76c87c5fbaSopenharmony_ci 77c87c5fbaSopenharmony_ci#if defined(_MSC_VER) && (_MSC_VER < 1900) && !defined(snprintf) 78c87c5fbaSopenharmony_ci#define snprintf _snprintf 79c87c5fbaSopenharmony_ci#endif 80c87c5fbaSopenharmony_ci 81c87c5fbaSopenharmony_ci#ifndef COAP_DISABLE_TCP 82c87c5fbaSopenharmony_ci/* Define to 1 to build without TCP support. */ 83c87c5fbaSopenharmony_ci#define COAP_DISABLE_TCP 0 84c87c5fbaSopenharmony_ci#endif 85c87c5fbaSopenharmony_ci 86c87c5fbaSopenharmony_ci#ifndef COAP_IPV4_SUPPORT 87c87c5fbaSopenharmony_ci/* Define to 1 to build with IPv4 support. */ 88c87c5fbaSopenharmony_ci#define COAP_IPV4_SUPPORT 1 89c87c5fbaSopenharmony_ci#endif 90c87c5fbaSopenharmony_ci 91c87c5fbaSopenharmony_ci#ifndef COAP_IPV6_SUPPORT 92c87c5fbaSopenharmony_ci/* Define to 1 to build with IPv6 support. */ 93c87c5fbaSopenharmony_ci#define COAP_IPV6_SUPPORT 1 94c87c5fbaSopenharmony_ci#endif 95c87c5fbaSopenharmony_ci 96c87c5fbaSopenharmony_ci#ifndef COAP_AF_UNIX_SUPPORT 97c87c5fbaSopenharmony_ci/* Define to 1 to build with Unix socket support. */ 98c87c5fbaSopenharmony_ci#define COAP_AF_UNIX_SUPPORT 0 99c87c5fbaSopenharmony_ci#endif 100c87c5fbaSopenharmony_ci 101c87c5fbaSopenharmony_ci#ifndef COAP_CLIENT_SUPPORT 102c87c5fbaSopenharmony_ci/* Define if libcoap supports client mode code. */ 103c87c5fbaSopenharmony_ci#define COAP_CLIENT_SUPPORT 1 104c87c5fbaSopenharmony_ci#endif 105c87c5fbaSopenharmony_ci 106c87c5fbaSopenharmony_ci#ifndef COAP_SERVER_SUPPORT 107c87c5fbaSopenharmony_ci/* Define if libcoap supports server mode code. */ 108c87c5fbaSopenharmony_ci#define COAP_SERVER_SUPPORT 1 109c87c5fbaSopenharmony_ci#endif 110c87c5fbaSopenharmony_ci 111c87c5fbaSopenharmony_ci#ifndef COAP_WITH_OBSERVE_PERSIST 112c87c5fbaSopenharmony_ci/* Define to build support for persisting observes. */ 113c87c5fbaSopenharmony_ci#define COAP_WITH_OBSERVE_PERSIST 0 114c87c5fbaSopenharmony_ci#endif 115c87c5fbaSopenharmony_ci 116c87c5fbaSopenharmony_ci#ifndef COAP_WS_SUPPORT 117c87c5fbaSopenharmony_ci/* Define to 1 to build with WebSockets support. */ 118c87c5fbaSopenharmony_ci#define COAP_WS_SUPPORT 0 119c87c5fbaSopenharmony_ci#endif 120c87c5fbaSopenharmony_ci 121c87c5fbaSopenharmony_ci#ifndef COAP_Q_BLOCK_SUPPORT 122c87c5fbaSopenharmony_ci/* Define to 1 to build with Q-Block (RFC9177) support. */ 123c87c5fbaSopenharmony_ci#define COAP_Q_BLOCK_SUPPORT 0 124c87c5fbaSopenharmony_ci#endif 125c87c5fbaSopenharmony_ci 126c87c5fbaSopenharmony_ci#ifndef COAP_MAX_LOGGING_LEVEL 127c87c5fbaSopenharmony_ci/* Define to 0-8 for maximum logging level. */ 128c87c5fbaSopenharmony_ci#define COAP_MAX_LOGGING_LEVEL 8 129c87c5fbaSopenharmony_ci#endif 130c87c5fbaSopenharmony_ci 131c87c5fbaSopenharmony_ci#ifndef COAP_OSCORE_SUPPORT 132c87c5fbaSopenharmony_ci/* Define to 1 to build with OSCORE support. */ 133c87c5fbaSopenharmony_ci#define COAP_OSCORE_SUPPORT 1 134c87c5fbaSopenharmony_ci#endif 135c87c5fbaSopenharmony_ci 136c87c5fbaSopenharmony_ci#ifndef COAP_ASYNC_SUPPORT 137c87c5fbaSopenharmony_ci/* Define to 1 to build with support for async separate responses. */ 138c87c5fbaSopenharmony_ci#define COAP_ASYNC_SUPPORT 1 139c87c5fbaSopenharmony_ci#endif 140c87c5fbaSopenharmony_ci 141c87c5fbaSopenharmony_ci/* Define to the address where bug reports for this package should be sent. */ 142c87c5fbaSopenharmony_ci#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@" 143c87c5fbaSopenharmony_ci 144c87c5fbaSopenharmony_ci/* Define to the full name of this package. */ 145c87c5fbaSopenharmony_ci#define PACKAGE_NAME "@PACKAGE_NAME@" 146c87c5fbaSopenharmony_ci 147c87c5fbaSopenharmony_ci/* Define to the full name and version of this package. */ 148c87c5fbaSopenharmony_ci#define PACKAGE_STRING "@PACKAGE_STRING@" 149c87c5fbaSopenharmony_ci 150c87c5fbaSopenharmony_ci/* Define to the one symbol short name of this package. */ 151c87c5fbaSopenharmony_ci#define PACKAGE_TARNAME "@PACKAGE_TARNAME@" 152c87c5fbaSopenharmony_ci 153c87c5fbaSopenharmony_ci/* Define to the home page for this package. */ 154c87c5fbaSopenharmony_ci#define PACKAGE_URL "@PACKAGE_URL@" 155c87c5fbaSopenharmony_ci 156c87c5fbaSopenharmony_ci/* Define to the version of this package. */ 157c87c5fbaSopenharmony_ci#define PACKAGE_VERSION "@PACKAGE_VERSION@" 158c87c5fbaSopenharmony_ci 159c87c5fbaSopenharmony_ci/* Define to 1 if you have the ANSI C header files. */ 160c87c5fbaSopenharmony_ci#define STDC_HEADERS 1 161c87c5fbaSopenharmony_ci 162c87c5fbaSopenharmony_ci/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 163c87c5fbaSopenharmony_ci significant byte first (like Motorola and SPARC, unlike Intel). */ 164c87c5fbaSopenharmony_ci#if defined AC_APPLE_UNIVERSAL_BUILD 165c87c5fbaSopenharmony_ci# if defined __BIG_ENDIAN__ 166c87c5fbaSopenharmony_ci# define WORDS_BIGENDIAN 1 167c87c5fbaSopenharmony_ci# endif 168c87c5fbaSopenharmony_ci#else 169c87c5fbaSopenharmony_ci# ifndef WORDS_BIGENDIAN 170c87c5fbaSopenharmony_ci/* # undef WORDS_BIGENDIAN */ 171c87c5fbaSopenharmony_ci# endif 172c87c5fbaSopenharmony_ci#endif 173c87c5fbaSopenharmony_ci 174c87c5fbaSopenharmony_ci/* Define this to 1 for ancillary data on MacOS */ 175c87c5fbaSopenharmony_ci/* #undef __APPLE_USE_RFC_3542 */ 176c87c5fbaSopenharmony_ci 177c87c5fbaSopenharmony_ci/* Define to `unsigned int' if <sys/types.h> does not define. */ 178c87c5fbaSopenharmony_ci/* #undef size_t */ 179c87c5fbaSopenharmony_ci 180c87c5fbaSopenharmony_ci/* Define to `int' if <sys/types.h> does not define. */ 181c87c5fbaSopenharmony_ci/* #undef ssize_t */ 182c87c5fbaSopenharmony_ci 183c87c5fbaSopenharmony_ci#endif 184c87c5fbaSopenharmony_ci 185c87c5fbaSopenharmony_ci#endif /* COAP_CONFIG_H_ */ 186