MHD_config.h 7.3 KB

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