Debian Codegraph @

w32/common/MHD_config.h

raw
1 /* MHD_config.h for W32 */
2 /* Created manually. */
3
4 /* *** Basic OS/compiler information *** */
5
6 /* This is a Windows system */
7 #define WINDOWS 1
8
9 /* Define if MS VC compiler is used */
10 #define MSVC 1
11
12 #ifndef __clang__
13 /* Define that MS VC does not support VLAs */
14 #ifndef __STDC_NO_VLA__
15 #define __STDC_NO_VLA__ 1
16 #endif /* ! __STDC_NO_VLA__ */
17 #else
18 /* If clang is used then variable-length arrays are supported. */
19 #define HAVE_C_VARARRAYS 1
20 #endif
21
22 /* Define to 1 if your C compiler supports inline functions. */
23 #define INLINE_FUNC 1
24
25 /* Define to prefix which will be used with MHD inline functions. */
26 #define _MHD_static_inline static __forceinline
27
28 #ifdef __clang__
29 /* Define to 1 if you have __builtin_bswap32() builtin function */
30 #define MHD_HAVE___BUILTIN_BSWAP32 1
31
32 /* Define to 1 if you have __builtin_bswap64() builtin function */
33 #define MHD_HAVE___BUILTIN_BSWAP64 1
34 #endif /* __clang__ */
35
36 /* The size of `size_t', as computed by sizeof. */
37 #if defined(_M_X64) || defined(_M_AMD64) || defined(_M_ARM64) || defined(_WIN64)
38 #define SIZEOF_SIZE_T 8
39 #else /* ! _WIN64 */
40 #define SIZEOF_SIZE_T 4
41 #endif /* ! _WIN64 */
42
43 /* The size of `tv_sec' member of `struct timeval', as computed by sizeof */
44 #define SIZEOF_STRUCT_TIMEVAL_TV_SEC 4
45
46 /* The size of `int64_t', as computed by sizeof. */
47 #define SIZEOF_INT64_T 8
48
49 /* The size of `uint64_t', as computed by sizeof. */
50 #define SIZEOF_UINT64_T 8
51
52 /* The size of `int', as computed by sizeof. */
53 #define SIZEOF_INT 4
54
55 /* The size of `unsigned int', as computed by sizeof. */
56 #define SIZEOF_UNSIGNED_INT 4
57
58 /* The size of `unsigned long long', as computed by sizeof. */
59 #define SIZEOF_UNSIGNED_LONG_LONG 8
60
61 /* Define to supported 'noreturn' function declaration */
62 #if defined(_STDC_VERSION__) && (__STDC_VERSION__ + 0) >= 201112L
63 #define _MHD_NORETURN _Noreturn
64 #else /* before C11 */
65 #define _MHD_NORETURN __declspec(noreturn)
66 #endif /* before C11 */
67
68 /* *** MHD configuration *** */
69 /* Undef to disable feature */
70
71 /* Enable basic Auth support */
72 #define BAUTH_SUPPORT 1
73
74 /* Enable digest Auth support */
75 #define DAUTH_SUPPORT 1
76
77 /* The default HTTP Digest Auth default maximum nc (nonce count) value */
78 #define MHD_DAUTH_DEF_MAX_NC_ 1000
79
80 /* The default HTTP Digest Auth default nonce timeout value (in seconds) */
81 #define MHD_DAUTH_DEF_TIMEOUT_ 90
82
83 /* Enable MD5 hashing support. */
84 #define MHD_MD5_SUPPORT 1
85
86 /* Enable SHA-256 hashing support. */
87 #define MHD_SHA256_SUPPORT 1
88
89 /* Enable SHA-512/256 hashing support. */
90 #define MHD_SHA512_256_SUPPORT 1
91
92 /* Enable postprocessor.c */
93 #define HAVE_POSTPROCESSOR 1
94
95 /* Enable error messages */
96 #define HAVE_MESSAGES 1
97
98 /* Enable HTTP Upgrade support. */
99 #define UPGRADE_SUPPORT 1
100
101 /* Enable HTTP cookie parsing support. */
102 #define COOKIE_SUPPORT 1
103
104 /* *** OS features *** */
105
106 /* Provides IPv6 headers */
107 #define HAVE_INET6 1
108
109 /* Define to 1 if your system allow overriding the value of FD_SETSIZE macro */
110 #define HAS_FD_SETSIZE_OVERRIDABLE 1
111
112 #if 0 /* Do not define the macro to keep maintability simple if system value is updated */
113 /* Define to system default value of FD_SETSIZE macro */
114 # define MHD_SYS_FD_SETSIZE_ 64
115 #endif
116
117 /* Define to use socketpair for inter-thread communication */
118 #define _MHD_ITC_SOCKETPAIR 1
119
120 /* define to use W32 threads */
121 #define MHD_USE_W32_THREADS 1
122
123 #ifndef _WIN32_WINNT
124 /* MHD supports Windows XP and later W32 systems*/
125 #define _WIN32_WINNT 0x0600
126 #endif /* _WIN32_WINNT */
127
128 /* winsock poll is available only on Vista and later */
129 #if _WIN32_WINNT >= 0x0600
130 #define HAVE_POLL 1
131 #endif /* _WIN32_WINNT >= 0x0600 */
132
133 /* Define to 1 if you have the <winsock2.h> header file. */
134 #define HAVE_WINSOCK2_H 1
135
136 /* Define to 1 if you have the <ws2tcpip.h> header file. */
137 #define HAVE_WS2TCPIP_H 1
138
139 /* Define to 1 if you have the `_lseeki64' function. */
140 #define HAVE___LSEEKI64 1
141
142 /* Define to 1 if you have the `gmtime_s' function in W32 form. */
143 #define HAVE_W32_GMTIME_S 1
144
145 /* Define to 1 if you have the usable `calloc' function. */
146 #define HAVE_CALLOC 1
147
148 /* Define if you have usable assert() and assert.h */
149 #define HAVE_ASSERT 1
150
151 /* Define to 1 if you have the <limits.h> header file. */
152 #define HAVE_LIMITS_H 1
153
154 /* Define to 1 if you have the <stddef.h> header file. */
155 #define HAVE_STDDEF_H 1
156
157 /* Define to 1 if you have the <stdlib.h> header file. */
158 #define HAVE_STDLIB_H 1
159
160 /* Define to 1 if you have the <string.h> header file. */
161 #define HAVE_STRING_H 1
162
163 /* Define to 1 if you have the <sys/stat.h> header file. */
164 #define HAVE_SYS_STAT_H 1
165
166 /* Define to 1 if you have the <time.h> header file. */
167 #define HAVE_TIME_H 1
168
169 #if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */
170 /* Define to 1 if you have the `snprintf' function. */
171 #define HAVE_SNPRINTF 1
172 #endif
173
174 #if _MSC_VER >= 1800
175 /* Define to 1 if you have the <inttypes.h> header file. */
176 #define HAVE_INTTYPES_H 1
177 #endif
178
179 #if _MSC_VER + 0 >= 1800 /* VS 2013 and later */
180 /* Define to 1 if you have the <stdbool.h> header file and <stdbool.h> defines
181 'bool' type. */
182 #define HAVE_STDBOOL_H 1
183 /* Define to 1 if you have the real boolean type. */
184 #define HAVE_REAL_BOOL 1
185 /* Define to 1 if you have the real boolean type. */
186 #define HAVE_BUILTIN_TYPE_BOOL 1
187 #else /* before VS 2013 */
188
189 /* Define to type name which will be used as boolean type. */
190 #define bool int
191
192 /* Define to value interpreted by compiler as boolean "false", if "false" is
193 not defined by system headers. */
194 #define false 0
195
196 /* Define to value interpreted by compiler as boolean "true", if "true" is not
197 defined by system headers. */
198 #define true (!0)
199 #endif /* before VS 2013 */
200
201 /* Define to 1 if you have the `getsockname' function. */
202 #define HAVE_GETSOCKNAME 1
203
204 /* Define if you have usable `getsockname' function. */
205 #define MHD_USE_GETSOCKNAME 1
206
207 /* Define to 1 if your compiler supports __func__ magic-macro. */
208 #define HAVE___FUNC__ 1
209
210 #if _MSC_VER + 0 >= 1900 /* VS 2015 and later */
211 #if defined(_STDC_VERSION__) && (__STDC_VERSION__ + 0) >= 201112L
212 /* Define to 1 if your compiler supports 'alignof()' */
213 #define HAVE_C_ALIGNOF 1
214 /* Define to 1 if you have the <stdalign.h> header file. */
215 #define HAVE_STDALIGN_H 1
216 #endif /* C11 */
217 #endif /* VS 2015 and later */
218
219 /* Define to 1 if you have the 'rand' function. */
220 #define HAVE_RAND 1
221
222 /* *** Headers information *** */
223 /* Not really important as not used by code currently */
224
225 /* Define to 1 if you have the <errno.h> header file. */
226 #define HAVE_ERRNO_H 1
227
228 /* Define to 1 if you have the <fcntl.h> header file. */
229 #define HAVE_FCNTL_H 1
230
231 /* Define to 1 if you have the <locale.h> header file. */
232 #define HAVE_LOCALE_H 1
233
234 /* Define to 1 if you have the <math.h> header file. */
235 #define HAVE_MATH_H 1
236
237 /* Define to 1 if you have the <sdkddkver.h> header file. */
238 #define HAVE_SDKDDKVER_H 1
239
240 /* Define to 1 if you have the <memory.h> header file. */
241 #define HAVE_MEMORY_H 1
242
243 /* Define to 1 if you have the <stdint.h> header file. */
244 #define HAVE_STDINT_H 1
245
246 /* Define to 1 if you have the <stdio.h> header file. */
247 #define HAVE_STDIO_H 1
248
249 /* Define to 1 if you have the <strings.h> header file. */
250 #define HAVE_STRINGS_H 1
251
252 /* Define to 1 if you have the <sys/types.h> header file. */
253 #define HAVE_SYS_TYPES_H 1
254
255 /* Define to 1 if you have the <windows.h> header file. */
256 #define HAVE_WINDOWS_H 1
257
258
259 /* *** Other useful staff *** */
260
261 #define _GNU_SOURCE 1
262
263 /* Define to 1 if you have the ANSI C header files. */
264 #define STDC_HEADERS 1
265
266
267 /* End of MHD_config.h */