mhd_config.h (12986B)
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 #ifndef __clang__ 10 /* Define that MS VC does not support VLAs */ 11 #ifndef __STDC_NO_VLA__ 12 #define __STDC_NO_VLA__ 1 13 #endif /* ! __STDC_NO_VLA__ */ 14 #else 15 /* If clang is used then variable-length arrays are supported. */ 16 #define HAVE_C_VARARRAYS 1 17 #endif 18 19 20 /* Define to '1' if your compiler supports 'array[static N]' with fixed N as 21 function parameter */ 22 #define HAVE_FUNC_PARAM_ARR_STATIC_FIXED 1 23 24 #ifdef __clang__ 25 /* Define to '1' if your compiler supports 'array[static N]' with variable N 26 as a function parameter */ 27 # define HAVE_FUNC_PARAM_ARR_STATIC_VAR 1 28 #endif /* __clang__ */ 29 30 /* Define to 1 if your compiler supports __func__ magic-macro. */ 31 #define HAVE___FUNC__ 1 32 33 /* Define to 1 if your C compiler supports inline functions. */ 34 #define INLINE_FUNC 1 35 36 /* Define to prefix which will be used with MHD static inline functions. */ 37 #define mhd_static_inline static __forceinline 38 39 /* Compound literals are supported natively since VS2013, but only in C */ 40 #if defined(__clang__) || \ 41 (defined(_MSC_VER) && _MSC_VER >= 1800 && ! defined(__cplusplus) && \ 42 (defined(_MSC_EXTENSIONS) || \ 43 ((defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112)))) 44 /* Define to '1' if your compiler supports compound literals */ 45 # define HAVE_COMPOUND_LITERALS 1 46 47 /* Define to '1' if your compiler supports compound literals as local arrays 48 */ 49 # define HAVE_COMPOUND_LITERALS_ARRAYS_LOCAL 1 50 51 /* Define to '1' if your compiler supports compound literals as arrays of the 52 scope */ 53 # define HAVE_COMPOUND_LITERALS_ARRAYS_SCOPE 1 54 55 /* Define to '1' if your compiler supports compound literals as lvalues */ 56 # define HAVE_COMPOUND_LITERALS_LVALUES 1 57 #endif 58 59 #ifdef __clang__ 60 /* Define to 1 if you have __builtin_bswap32() builtin function */ 61 # define MHD_HAVE___BUILTIN_BSWAP32 1 62 63 /* Define to 1 if you have __builtin_bswap64() builtin function */ 64 # define MHD_HAVE___BUILTIN_BSWAP64 1 65 #endif /* __clang__ */ 66 67 /* Define to '1' if your compiler supports variadic macros */ 68 #define HAVE_MACRO_VARIADIC 1 69 70 /* Define to '1' if NULL pointers binary representation is all zero bits */ 71 #define HAVE_NULL_PTR_ALL_ZEROS 1 72 73 /* Define to keyword supported to indicate unreachable code paths */ 74 #ifdef __clang__ 75 # define MHD_UNREACHABLE_KEYWORD __builtin_unreachable () 76 #elif defined(_MSC_VER) 77 # define MHD_UNREACHABLE_KEYWORD __assume (0) 78 #endif 79 80 #if defined(__clang__) || \ 81 (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901) 82 /* Define to '1' if your compiler supports 'restrict' keyword */ 83 # define HAVE_RESTRICT 1 84 #elif defined(_MSC_VER) && _MSC_VER >= 1400 && defined(_MSC_EXTENSIONS) 85 # define restrict __restrict 86 /* Define to '1' if your compiler supports 'restrict' keyword */ 87 # define HAVE_RESTRICT 1 88 #endif 89 90 #if ! defined(HAVE_RESTRICT) 91 # define restrict /* empty */ 92 #endif 93 94 #if (defined(_MSVC_LANG) && _MSVC_LANG >= 201703) \ 95 || (defined(__cplusplus) && __cplusplus >= 201703) 96 /* Define to keyword marking intentional missing 'break' at the end of 'case:' 97 */ 98 # define mhd_FALLTHROUGH [[fallthrough]] 99 #elif defined(__has_attribute) 100 # if __has_attribute (__fallthrough__) 101 /* Define to keyword marking intentional missing 'break' at the end of 'case:' 102 */ 103 # define mhd_FALLTHROUGH __attribute__((__fallthrough__)) 104 # endif 105 #endif 106 107 #if ! defined(mhd_FALLTHROUGH) 108 /* Define to keyword marking intentional missing 'break' at the end of 'case:' 109 This macro is actually just empty. */ 110 # define mhd_FALLTHROUGH /* Intentional fallthrough */ 111 #endif 112 113 /* The size of 'char', as computed by sizeof. */ 114 #define SIZEOF_CHAR 1 115 116 /* The size of 'int', as computed by sizeof. */ 117 #define SIZEOF_INT 4 118 119 /* The size of 'int_fast64_t', as computed by sizeof. */ 120 #define SIZEOF_INT_FAST64_T 8 121 122 /* The size of 'size_t', as computed by sizeof. */ 123 #if defined(_M_X64) || defined(_M_AMD64) || defined(_M_ARM64) || defined(_WIN64) 124 #define SIZEOF_SIZE_T 8 125 #else /* ! _WIN64 */ 126 #define SIZEOF_SIZE_T 4 127 #endif /* ! _WIN64 */ 128 129 /* The size of `tv_sec' member of `struct timeval', as computed by sizeof */ 130 #define SIZEOF_STRUCT_TIMEVAL_TV_SEC 4 131 132 /* The size of 'unsigned int', as computed by sizeof. */ 133 #define SIZEOF_UNSIGNED_INT 4 134 135 /* The size of 'unsigned long long', as computed by sizeof. */ 136 #define SIZEOF_UNSIGNED_LONG_LONG 8 137 138 /* Define to supported 'noreturn' function declaration */ 139 #if defined(_STDC_VERSION__) && (__STDC_VERSION__ + 0) >= 201112L 140 #define MHD_NORETURN_ _Noreturn 141 #else /* before C11 */ 142 #define MHD_NORETURN_ __declspec(noreturn) 143 #endif /* before C11 */ 144 145 /* *** OS features *** */ 146 147 /* Provides IPv6 headers */ 148 #define HAVE_INET6 1 149 150 /* Define to '1' if you have the declaration of 'IPV6_V6ONLY' */ 151 #define HAVE_DCLR_IPV6_V6ONLY 1 152 153 /* Define to 1 if your system allow overriding the value of FD_SETSIZE macro */ 154 #define HAS_FD_SETSIZE_OVERRIDABLE 1 155 156 #if 0 /* Do not define the macro to keep maintability simple if system value is updated */ 157 /* Define to system default value of FD_SETSIZE macro */ 158 # define MHD_SYS_FD_SETSIZE_ 64 159 #endif 160 161 /* Define to use socketpair for inter-thread communication */ 162 #define MHD_ITC_SOCKETPAIR_ 1 163 164 /* define to use W32 threads */ 165 #define mhd_THREADS_KIND_W32 1 166 167 #ifndef _WIN32_WINNT 168 /* MHD supports Windows XP and later W32 systems*/ 169 #define _WIN32_WINNT 0x0600 170 #endif /* _WIN32_WINNT */ 171 172 /* winsock poll is available only on Vista and later */ 173 #if _WIN32_WINNT >= 0x0600 174 # define HAVE_POLL 1 175 176 /* Define to 1 if you have the 'WSAPoll' function. */ 177 # define HAVE_WSAPOLL 1 178 179 #endif /* _WIN32_WINNT >= 0x0600 */ 180 181 /* Define to '1' if select() is supported on your platform */ 182 #define HAVE_SELECT 1 183 184 /* Define to 1 if you have the `gmtime_s' function in W32 form. */ 185 #define HAVE_W32_GMTIME_S 1 186 187 /* Define to 1 if you have the usable `calloc' function. */ 188 #define HAVE_CALLOC 1 189 190 /* Define if you have usable assert() and assert.h */ 191 #define HAVE_ASSERT 1 192 193 #if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */ 194 /* Define to 1 if you have the `snprintf' function. */ 195 #define HAVE_SNPRINTF 1 196 #endif 197 198 #if _MSC_VER + 0 >= 1800 /* VS 2013 and later */ || defined(__cplusplus) 199 # if ! defined(__cplusplus) && \ 200 (! defined(__STDC_VERSION__) || (__STDC_VERSION__ + 0) < 202311) 201 /* Define to 1 if you have the <stdbool.h> header file and <stdbool.h> is 202 required to use 'bool' type. */ 203 # define HAVE_STDBOOL_H 1 204 # endif 205 /* Define to 1 if you have the boolean type that takes only 'true' and 206 'false'. */ 207 # define HAVE_BUILTIN_TYPE_BOOL 1 208 #else /* before VS 2013 */ 209 210 /* Define to type name which will be used as boolean type. */ 211 #define bool int 212 213 /* Define to value interpreted by compiler as boolean "false", if "false" is 214 not defined by system headers. */ 215 #define false 0 216 217 /* Define to value interpreted by compiler as boolean "true", if "true" is not 218 defined by system headers. */ 219 #define true (! 0) 220 #endif /* before VS 2013 */ 221 222 /* Define if you have usable `getsockname' function. */ 223 #define MHD_USE_GETSOCKNAME 1 224 225 #if _MSC_VER + 0 >= 1900 /* VS 2015 and later */ 226 #if defined(__STDC_VERSION__) && (__STDC_VERSION__ + 0) >= 201112L 227 /* Define to 1 if your compiler supports 'alignof()' */ 228 #define HAVE_C_ALIGNOF 1 229 /* Define to 1 if you have the <stdalign.h> header file. */ 230 #define HAVE_STDALIGN_H 1 231 #endif /* C11 */ 232 #endif /* VS 2015 and later */ 233 234 /* Define to '1' if you have the declaration of 'AF_UNIX' */ 235 #define HAVE_DCLR_AF_UNIX 1 236 237 /* Define to 1 if you have the 'nanosleep' function. */ 238 #define HAVE_NANOSLEEP 1 239 240 /* Define to 1 if the system has the type 'ptrdiff_t'. */ 241 #define HAVE_PTRDIFF_T 1 242 243 /* Define to 1 if the system has the type 'size_t'. */ 244 #define HAVE_SIZE_T 1 245 246 /* Define to 1 if you have the 'timespec_get' function. */ 247 #define HAVE_TIMESPEC_GET 1 248 249 /* Define to 1 if the system has the type 'uint8_t'. */ 250 #define HAVE_UINT8_T 1 251 252 /* Define to 1 if the system has the type 'uintptr_t'. */ 253 #define HAVE_UINTPTR_T 1 254 255 /* *** Headers information *** */ 256 257 #if _MSC_VER >= 1800 258 /* Define to 1 if you have the <inttypes.h> header file. */ 259 #define HAVE_INTTYPES_H 1 260 #endif 261 262 /* Define to 1 if you have the <windows.h> header file. */ 263 #define HAVE_WINDOWS_H 1 264 265 /* Define to 1 if you have the <winsock2.h> header file. */ 266 #define HAVE_WINSOCK2_H 1 267 268 /* Define to 1 if you have the <ws2tcpip.h> header file. */ 269 #define HAVE_WS2TCPIP_H 1 270 271 /* Define to 1 if you have the <errno.h> header file. */ 272 #define HAVE_ERRNO_H 1 273 274 /* Define to 1 if you have the <fcntl.h> header file. */ 275 #define HAVE_FCNTL_H 1 276 277 /* Define to 1 if you have the <limits.h> header file. */ 278 #define HAVE_LIMITS_H 1 279 280 /* Define to 1 if you have the <stddef.h> header file. */ 281 #define HAVE_STDDEF_H 1 282 283 /* Define to 1 if you have the <stdint.h> header file. */ 284 #define HAVE_STDINT_H 1 285 286 /* Define to 1 if you have the <stdlib.h> header file. */ 287 #define HAVE_STDLIB_H 1 288 289 /* Define to 1 if you have the <stdio.h> header file. */ 290 #define HAVE_STDIO_H 1 291 292 /* Define to 1 if you have the <strings.h> header file. */ 293 #define HAVE_STRINGS_H 1 294 295 /* Define to 1 if you have the <string.h> header file. */ 296 #define HAVE_STRING_H 1 297 298 /* Define to 1 if you have the <sys/stat.h> header file. */ 299 #define HAVE_SYS_STAT_H 1 300 301 /* Define to 1 if you have the <time.h> header file. */ 302 #define HAVE_TIME_H 1 303 304 /* Define to 1 if you have the <sys/types.h> header file. */ 305 #define HAVE_SYS_TYPES_H 1 306 307 /* Define to 1 if you have the <malloc.h> header file. */ 308 #define HAVE_MALLOC_H 1 309 310 /* Define to 1 if you have the <sdkddkver.h> header file. */ 311 #define HAVE_SDKDDKVER_H 1 312 313 /* Define to 1 if you have the <stdarg.h> header file. */ 314 #define HAVE_STDARG_H 1 315 316 /* *** Declarations in headers *** */ 317 318 #ifdef HAVE_WSAPOLL 319 /* Define to '1' if you have the declaration of 'POLLIN' */ 320 # define HAVE_DCLR_POLLIN 1 321 322 /* Define to '1' if you have the declaration of 'POLLOUT' */ 323 # define HAVE_DCLR_POLLOUT 1 324 325 /* Define to '1' if you have the declaration of 'POLLPRI' */ 326 # define HAVE_DCLR_POLLPRI 1 327 328 /* Define to '1' if you have the declaration of 'POLLRDBAND' */ 329 # define HAVE_DCLR_POLLRDBAND 1 330 331 /* Define to '1' if you have the declaration of 'POLLRDNORM' */ 332 # define HAVE_DCLR_POLLRDNORM 1 333 334 /* Define to '1' if you have the declaration of 'POLLWRBAND' */ 335 # define HAVE_DCLR_POLLWRBAND 1 336 337 /* Define to '1' if you have the declaration of 'POLLWRNORM' */ 338 # define HAVE_DCLR_POLLWRNORM 1 339 #endif /* HAVE_WSAPOLL */ 340 341 /* Define to '1' if you have the declaration of 'SD_SEND' */ 342 #define HAVE_DCLR_SD_SEND 1 343 344 /* Define to '1' if you have the declaration of 'SOL_SOCKET' */ 345 #define HAVE_DCLR_SOL_SOCKET 1 346 347 /* Define to '1' if you have the declaration of 'SOMAXCONN' */ 348 #define HAVE_DCLR_SOMAXCONN 1 349 350 /* Define to '1' if you have the declaration of 'SO_LINGER' */ 351 #define HAVE_DCLR_SO_LINGER 1 352 353 /* Define to '1' if you have the declaration of 'SO_REUSEADDR' */ 354 #define HAVE_DCLR_SO_REUSEADDR 1 355 356 /* Define to '1' if you have the declaration of 'TCP_FASTOPEN' */ 357 /* #define HAVE_DCLR_TCP_FASTOPEN 1 */ /* Should be autodetected in header */ 358 359 /* Define to '1' if you have the declaration of 'TCP_NODELAY' */ 360 #define HAVE_DCLR_TCP_NODELAY 1 361 362 363 /* *** MHD configuration *** */ 364 /* Undef to disable feature */ 365 366 /* Define to '1' to enable use of select() system call */ 367 #define MHD_SUPPORT_SELECT 1 368 369 #ifdef HAVE_WSAPOLL 370 /* Define to '1' to enable use of select() system call */ 371 # define MHD_SUPPORT_POLL 1 372 #endif 373 374 /* Define to 1 if libmicrohttpd is compiled with HTTP cookie parsing support. 375 */ 376 #define MHD_SUPPORT_COOKIES 1 377 378 /* The default HTTP Digest Auth default maximum nc (nonce count) value */ 379 #define MHD_AUTH_DIGEST_DEF_MAX_NC 1000 380 381 /* The default HTTP Digest Auth default nonce timeout value (in seconds) */ 382 #define MHD_AUTH_DIGEST_DEF_TIMEOUT 90 383 384 /* Define to '1' to enable internal logging and log messages. */ 385 #define MHD_SUPPORT_LOG_FUNCTIONALITY 1 386 387 /* Define to '1' to enable verbose text bodies for automatic HTTP replies. */ 388 #define MHD_ENABLE_AUTO_MESSAGES_BODIES 1 389 390 /* Define to '1' if libmicrohttpd should be compiled with Basic Auth support. 391 */ 392 #define MHD_SUPPORT_AUTH_BASIC 1 393 394 /* Define to 1 if libmicrohttpd is compiled with Digest Auth support. */ 395 #define MHD_SUPPORT_AUTH_DIGEST 1 396 397 /* Define to 1 if libmicrohttpd is compiled with MD5 hashing support. */ 398 #define MHD_SUPPORT_MD5 1 399 400 /* Define to 1 if libmicrohttpd is compiled with SHA-256 hashing support. */ 401 #define MHD_SUPPORT_SHA256 1 402 403 /* Define to 1 if libmicrohttpd is compiled with SHA-512/256 hashing support. 404 */ 405 #define MHD_SUPPORT_SHA512_256 1 406 407 /* Define to 1 if libmicrohttpd is compiled with POST parser support. */ 408 #define MHD_SUPPORT_POST_PARSER 1 409 410 /* Define to 1 if libmicrohttpd is compiled with HTTP Upgrade support. */ 411 #define MHD_SUPPORT_UPGRADE 1 412 413 /* Define to 1 if libmicrohttpd is compiled with HTTP cookie parsing support. 414 */ 415 #define MHD_SUPPORT_COOKIES 1 416 417 418 /* *** Other useful staff *** */ 419 420 #define _GNU_SOURCE 1 421 422 /* Define to 1 if you have the ANSI C header files. */ 423 #define STDC_HEADERS 1 424 425 426 /* End of mhd_config.h */