MHD_config.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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 `uint64_t', as computed by sizeof. */
  36. #define SIZEOF_UINT64_T 8
  37. /* The size of `unsigned int', as computed by sizeof. */
  38. #define SIZEOF_UNSIGNED_INT 4
  39. /* The size of `unsigned long long', as computed by sizeof. */
  40. #define SIZEOF_UNSIGNED_LONG_LONG 8
  41. /* Define to supported 'noreturn' function declaration */
  42. #if defined(_STDC_VERSION__) && (__STDC_VERSION__ + 0) >= 201112L
  43. #define _MHD_NORETURN _Noreturn
  44. #else /* before C11 */
  45. #define _MHD_NORETURN __declspec(noreturn)
  46. #endif /* before C11 */
  47. /* *** MHD configuration *** */
  48. /* Undef to disable feature */
  49. /* Enable basic Auth support */
  50. #define BAUTH_SUPPORT 1
  51. /* Enable digest Auth support */
  52. #define DAUTH_SUPPORT 1
  53. /* Enable postprocessor.c */
  54. #define HAVE_POSTPROCESSOR 1
  55. /* Enable error messages */
  56. #define HAVE_MESSAGES 1
  57. /* Enable HTTP Upgrade support. */
  58. #define UPGRADE_SUPPORT 1
  59. /* *** OS features *** */
  60. /* Provides IPv6 headers */
  61. #define HAVE_INET6 1
  62. /* Define to use socketpair for inter-thread communication */
  63. #define _MHD_ITC_SOCKETPAIR 1
  64. /* define to use W32 threads */
  65. #define MHD_USE_W32_THREADS 1
  66. #ifndef _WIN32_WINNT
  67. /* MHD supports Windows XP and later W32 systems*/
  68. #define _WIN32_WINNT 0x0600
  69. #endif /* _WIN32_WINNT */
  70. /* winsock poll is available only on Vista and later */
  71. #if _WIN32_WINNT >= 0x0600
  72. #define HAVE_POLL 1
  73. #endif /* _WIN32_WINNT >= 0x0600 */
  74. /* Define to 1 if you have the <winsock2.h> header file. */
  75. #define HAVE_WINSOCK2_H 1
  76. /* Define to 1 if you have the <ws2tcpip.h> header file. */
  77. #define HAVE_WS2TCPIP_H 1
  78. /* Define to 1 if you have the `_lseeki64' function. */
  79. #define HAVE___LSEEKI64 1
  80. /* Define to 1 if you have the `gmtime_s' function in W32 form. */
  81. #define HAVE_W32_GMTIME_S 1
  82. /* Define to 1 if you have the usable `calloc' function. */
  83. #define HAVE_CALLOC 1
  84. /* Define if you have usable assert() and assert.h */
  85. #define HAVE_ASSERT 1
  86. #if _MSC_VER >= 1900 /* snprintf() supported natively since VS2015 */
  87. /* Define to 1 if you have the `snprintf' function. */
  88. #define HAVE_SNPRINTF 1
  89. #endif
  90. #if _MSC_VER >= 1800
  91. /* Define to 1 if you have the <inttypes.h> header file. */
  92. #define HAVE_INTTYPES_H 1
  93. #endif
  94. #if _MSC_VER + 0 >= 1800 /* VS 2013 and later */
  95. /* Define to 1 if you have the <stdbool.h> header file and <stdbool.h> defines
  96. 'bool' type. */
  97. #define HAVE_STDBOOL_H 1
  98. #else /* before VS 2013 */
  99. /* Define to type name which will be used as boolean type. */
  100. #define bool int
  101. /* Define to value interpreted by compiler as boolean "false", if "false" is
  102. not defined by system headers. */
  103. #define false 0
  104. /* Define to value interpreted by compiler as boolean "true", if "true" is not
  105. defined by system headers. */
  106. #define true (!0)
  107. #endif /* before VS 2013 */
  108. /* Define to 1 if you have the `getsockname' function. */
  109. #define HAVE_GETSOCKNAME 1
  110. /* Define if you have usable `getsockname' function. */
  111. #define MHD_USE_GETSOCKNAME 1
  112. /* Define to 1 if your compiler supports __func__ magic-macro. */
  113. #define HAVE___FUNC__ 1
  114. #if _MSC_VER + 0 >= 1900 /* VS 2015 and later */
  115. #if defined(_STDC_VERSION__) && (__STDC_VERSION__ + 0) >= 201112L
  116. /* Define to 1 if your compiler supports 'alignof()' */
  117. #define HAVE_C_ALIGNOF 1
  118. /* Define to 1 if you have the <stdalign.h> header file. */
  119. #define HAVE_STDALIGN_H 1
  120. #endif /* C11 */
  121. #endif /* VS 2015 and later */
  122. /* *** Headers information *** */
  123. /* Not really important as not used by code currently */
  124. /* Define to 1 if you have the <errno.h> header file. */
  125. #define HAVE_ERRNO_H 1
  126. /* Define to 1 if you have the <fcntl.h> header file. */
  127. #define HAVE_FCNTL_H 1
  128. /* Define to 1 if you have the <inttypes.h> header file. */
  129. #define HAVE_INTTYPES_H 1
  130. /* Define to 1 if you have the <limits.h> header file. */
  131. #define HAVE_LIMITS_H 1
  132. /* Define to 1 if you have the <locale.h> header file. */
  133. #define HAVE_LOCALE_H 1
  134. /* Define to 1 if you have the <math.h> header file. */
  135. #define HAVE_MATH_H 1
  136. /* Define to 1 if you have the <sdkddkver.h> header file. */
  137. #define HAVE_SDKDDKVER_H 1
  138. /* Define to 1 if you have the <memory.h> header file. */
  139. #define HAVE_MEMORY_H 1
  140. /* Define to 1 if you have the <stdint.h> header file. */
  141. #define HAVE_STDINT_H 1
  142. /* Define to 1 if you have the <stdio.h> header file. */
  143. #define HAVE_STDIO_H 1
  144. /* Define to 1 if you have the <stdlib.h> header file. */
  145. #define HAVE_STDLIB_H 1
  146. /* Define to 1 if you have the <strings.h> header file. */
  147. #define HAVE_STRINGS_H 1
  148. /* Define to 1 if you have the <string.h> header file. */
  149. #define HAVE_STRING_H 1
  150. /* Define to 1 if you have the <sys/stat.h> header file. */
  151. #define HAVE_SYS_STAT_H 1
  152. /* Define to 1 if you have the <sys/types.h> header file. */
  153. #define HAVE_SYS_TYPES_H 1
  154. /* Define to 1 if you have the <time.h> header file. */
  155. #define HAVE_TIME_H 1
  156. /* Define to 1 if you have the <stddef.h> header file. */
  157. #define HAVE_STDDEF_H 1
  158. /* Define to 1 if you have the <windows.h> header file. */
  159. #define HAVE_WINDOWS_H 1
  160. /* *** Other useful staff *** */
  161. #define _GNU_SOURCE 1
  162. /* Define to 1 if you have the ANSI C header files. */
  163. #define STDC_HEADERS 1
  164. /* End of MHD_config.h */