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