config-win32.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  1. #ifndef HEADER_CURL_CONFIG_WIN32_H
  2. #define HEADER_CURL_CONFIG_WIN32_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  11. *
  12. * This software is licensed as described in the file COPYING, which
  13. * you should have received as part of this distribution. The terms
  14. * are also available at https://curl.se/docs/copyright.html.
  15. *
  16. * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  17. * copies of the Software, and permit persons to whom the Software is
  18. * furnished to do so, under the terms of the COPYING file.
  19. *
  20. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  21. * KIND, either express or implied.
  22. *
  23. ***************************************************************************/
  24. /* ================================================================ */
  25. /* Hand crafted config file for Windows */
  26. /* ================================================================ */
  27. /* ---------------------------------------------------------------- */
  28. /* HEADER FILES */
  29. /* ---------------------------------------------------------------- */
  30. /* Define if you have the <arpa/inet.h> header file. */
  31. /* #define HAVE_ARPA_INET_H 1 */
  32. /* Define if you have the <assert.h> header file. */
  33. #define HAVE_ASSERT_H 1
  34. /* Define if you have the <errno.h> header file. */
  35. #define HAVE_ERRNO_H 1
  36. /* Define if you have the <fcntl.h> header file. */
  37. #define HAVE_FCNTL_H 1
  38. /* Define if you have the <getopt.h> header file. */
  39. #if defined(__MINGW32__) || defined(__POCC__)
  40. #define HAVE_GETOPT_H 1
  41. #endif
  42. /* Define to 1 if you have the <inttypes.h> header file. */
  43. #if defined(_MSC_VER) && (_MSC_VER >= 1800)
  44. #define HAVE_INTTYPES_H 1
  45. #endif
  46. /* Define if you have the <io.h> header file. */
  47. #define HAVE_IO_H 1
  48. /* Define if you have the <locale.h> header file. */
  49. #define HAVE_LOCALE_H 1
  50. /* Define if you need <malloc.h> header even with <stdlib.h> header file. */
  51. #if !defined(__SALFORDC__) && !defined(__POCC__)
  52. #define NEED_MALLOC_H 1
  53. #endif
  54. /* Define if you have the <netdb.h> header file. */
  55. /* #define HAVE_NETDB_H 1 */
  56. /* Define if you have the <netinet/in.h> header file. */
  57. /* #define HAVE_NETINET_IN_H 1 */
  58. /* Define if you have the <process.h> header file. */
  59. #ifndef __SALFORDC__
  60. #define HAVE_PROCESS_H 1
  61. #endif
  62. /* Define if you have the <signal.h> header file. */
  63. #define HAVE_SIGNAL_H 1
  64. /* Define if you have the <ssl.h> header file. */
  65. /* #define HAVE_SSL_H 1 */
  66. /* Define to 1 if you have the <stdbool.h> header file. */
  67. #if defined(_MSC_VER) && (_MSC_VER >= 1800)
  68. #define HAVE_STDBOOL_H 1
  69. #endif
  70. /* Define if you have the <stdlib.h> header file. */
  71. #define HAVE_STDLIB_H 1
  72. /* Define if you have the <sys/param.h> header file. */
  73. /* #define HAVE_SYS_PARAM_H 1 */
  74. /* Define if you have the <sys/select.h> header file. */
  75. /* #define HAVE_SYS_SELECT_H 1 */
  76. /* Define if you have the <sys/socket.h> header file. */
  77. /* #define HAVE_SYS_SOCKET_H 1 */
  78. /* Define if you have the <sys/sockio.h> header file. */
  79. /* #define HAVE_SYS_SOCKIO_H 1 */
  80. /* Define if you have the <sys/stat.h> header file. */
  81. #define HAVE_SYS_STAT_H 1
  82. /* Define if you have the <sys/time.h> header file. */
  83. /* #define HAVE_SYS_TIME_H 1 */
  84. /* Define if you have the <sys/types.h> header file. */
  85. #define HAVE_SYS_TYPES_H 1
  86. /* Define if you have the <sys/utime.h> header file. */
  87. #ifndef __BORLANDC__
  88. #define HAVE_SYS_UTIME_H 1
  89. #endif
  90. /* Define if you have the <termio.h> header file. */
  91. /* #define HAVE_TERMIO_H 1 */
  92. /* Define if you have the <termios.h> header file. */
  93. /* #define HAVE_TERMIOS_H 1 */
  94. /* Define if you have the <time.h> header file. */
  95. #define HAVE_TIME_H 1
  96. /* Define if you have the <unistd.h> header file. */
  97. #if defined(__MINGW32__) || defined(__LCC__) || defined(__POCC__)
  98. #define HAVE_UNISTD_H 1
  99. #endif
  100. /* Define if you have the <windows.h> header file. */
  101. #define HAVE_WINDOWS_H 1
  102. /* Define if you have the <winsock2.h> header file. */
  103. #ifndef __SALFORDC__
  104. #define HAVE_WINSOCK2_H 1
  105. #endif
  106. /* Define if you have the <ws2tcpip.h> header file. */
  107. #ifndef __SALFORDC__
  108. #define HAVE_WS2TCPIP_H 1
  109. #endif
  110. /* ---------------------------------------------------------------- */
  111. /* OTHER HEADER INFO */
  112. /* ---------------------------------------------------------------- */
  113. /* Define if you have the ANSI C header files. */
  114. #define STDC_HEADERS 1
  115. /* Define if you can safely include both <sys/time.h> and <time.h>. */
  116. /* #define TIME_WITH_SYS_TIME 1 */
  117. /* Define to 1 if bool is an available type. */
  118. #if defined(_MSC_VER) && (_MSC_VER >= 1800)
  119. #define HAVE_BOOL_T 1
  120. #endif
  121. /* ---------------------------------------------------------------- */
  122. /* FUNCTIONS */
  123. /* ---------------------------------------------------------------- */
  124. /* Define if you have the closesocket function. */
  125. #define HAVE_CLOSESOCKET 1
  126. /* Define if you don't have vprintf but do have _doprnt. */
  127. /* #define HAVE_DOPRNT 1 */
  128. /* Define if you have the ftruncate function. */
  129. /* #define HAVE_FTRUNCATE 1 */
  130. /* Define to 1 if you have the `getpeername' function. */
  131. #define HAVE_GETPEERNAME 1
  132. /* Define to 1 if you have the getsockname function. */
  133. #define HAVE_GETSOCKNAME 1
  134. /* Define if you have the gethostname function. */
  135. #define HAVE_GETHOSTNAME 1
  136. /* Define if you have the getpass function. */
  137. /* #define HAVE_GETPASS 1 */
  138. /* Define if you have the getservbyname function. */
  139. #define HAVE_GETSERVBYNAME 1
  140. /* Define if you have the getprotobyname function. */
  141. #define HAVE_GETPROTOBYNAME
  142. /* Define if you have the gettimeofday function. */
  143. /* #define HAVE_GETTIMEOFDAY 1 */
  144. /* Define if you have the inet_addr function. */
  145. #define HAVE_INET_ADDR 1
  146. /* Define if you have the ioctlsocket function. */
  147. #define HAVE_IOCTLSOCKET 1
  148. /* Define if you have a working ioctlsocket FIONBIO function. */
  149. #define HAVE_IOCTLSOCKET_FIONBIO 1
  150. /* Define if you have the RAND_screen function when using SSL. */
  151. #define HAVE_RAND_SCREEN 1
  152. /* Define if you have the `RAND_status' function when using SSL. */
  153. #define HAVE_RAND_STATUS 1
  154. /* Define if you have the `CRYPTO_cleanup_all_ex_data' function.
  155. This is present in OpenSSL versions after 0.9.6b */
  156. #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
  157. /* Define if you have the select function. */
  158. #define HAVE_SELECT 1
  159. /* Define if you have the setlocale function. */
  160. #define HAVE_SETLOCALE 1
  161. /* Define if you have the setmode function. */
  162. #define HAVE_SETMODE 1
  163. /* Define if you have the setvbuf function. */
  164. #define HAVE_SETVBUF 1
  165. /* Define if you have the socket function. */
  166. #define HAVE_SOCKET 1
  167. /* Define if you have the strcasecmp function. */
  168. #ifdef __MINGW32__
  169. #define HAVE_STRCASECMP 1
  170. #endif
  171. /* Define if you have the strdup function. */
  172. #define HAVE_STRDUP 1
  173. /* Define if you have the strftime function. */
  174. #define HAVE_STRFTIME 1
  175. /* Define if you have the stricmp function. */
  176. #define HAVE_STRICMP 1
  177. /* Define if you have the strnicmp function. */
  178. #define HAVE_STRNICMP 1
  179. /* Define if you have the strstr function. */
  180. #define HAVE_STRSTR 1
  181. /* Define if you have the strtoll function. */
  182. #if defined(__MINGW32__) || defined(__POCC__) || \
  183. (defined(_MSC_VER) && (_MSC_VER >= 1800))
  184. #define HAVE_STRTOLL 1
  185. #endif
  186. /* Define if you have the utime function. */
  187. #ifndef __BORLANDC__
  188. #define HAVE_UTIME 1
  189. #endif
  190. /* Define if you have the recv function. */
  191. #define HAVE_RECV 1
  192. /* Define to the type of arg 1 for recv. */
  193. #define RECV_TYPE_ARG1 SOCKET
  194. /* Define to the type of arg 2 for recv. */
  195. #define RECV_TYPE_ARG2 char *
  196. /* Define to the type of arg 3 for recv. */
  197. #define RECV_TYPE_ARG3 int
  198. /* Define to the type of arg 4 for recv. */
  199. #define RECV_TYPE_ARG4 int
  200. /* Define to the function return type for recv. */
  201. #define RECV_TYPE_RETV int
  202. /* Define if you have the recvfrom function. */
  203. #define HAVE_RECVFROM 1
  204. /* Define to the type of arg 1 for recvfrom. */
  205. #define RECVFROM_TYPE_ARG1 SOCKET
  206. /* Define to the type pointed by arg 2 for recvfrom. */
  207. #define RECVFROM_TYPE_ARG2 char
  208. /* Define to the type of arg 3 for recvfrom. */
  209. #define RECVFROM_TYPE_ARG3 int
  210. /* Define to the type of arg 4 for recvfrom. */
  211. #define RECVFROM_TYPE_ARG4 int
  212. /* Define to the type pointed by arg 5 for recvfrom. */
  213. #define RECVFROM_TYPE_ARG5 struct sockaddr
  214. /* Define to the type pointed by arg 6 for recvfrom. */
  215. #define RECVFROM_TYPE_ARG6 int
  216. /* Define to the function return type for recvfrom. */
  217. #define RECVFROM_TYPE_RETV int
  218. /* Define if you have the send function. */
  219. #define HAVE_SEND 1
  220. /* Define to the type of arg 1 for send. */
  221. #define SEND_TYPE_ARG1 SOCKET
  222. /* Define to the type qualifier of arg 2 for send. */
  223. #define SEND_QUAL_ARG2 const
  224. /* Define to the type of arg 2 for send. */
  225. #define SEND_TYPE_ARG2 char *
  226. /* Define to the type of arg 3 for send. */
  227. #define SEND_TYPE_ARG3 int
  228. /* Define to the type of arg 4 for send. */
  229. #define SEND_TYPE_ARG4 int
  230. /* Define to the function return type for send. */
  231. #define SEND_TYPE_RETV int
  232. /* ---------------------------------------------------------------- */
  233. /* TYPEDEF REPLACEMENTS */
  234. /* ---------------------------------------------------------------- */
  235. /* Define if in_addr_t is not an available 'typedefed' type. */
  236. #define in_addr_t unsigned long
  237. /* Define if ssize_t is not an available 'typedefed' type. */
  238. #ifndef _SSIZE_T_DEFINED
  239. # if defined(__POCC__) || defined(__MINGW32__)
  240. # elif defined(_WIN64)
  241. # define _SSIZE_T_DEFINED
  242. # define ssize_t __int64
  243. # else
  244. # define _SSIZE_T_DEFINED
  245. # define ssize_t int
  246. # endif
  247. #endif
  248. /* ---------------------------------------------------------------- */
  249. /* TYPE SIZES */
  250. /* ---------------------------------------------------------------- */
  251. /* Define to the size of `int', as computed by sizeof. */
  252. #define SIZEOF_INT 4
  253. /* Define to the size of `long double', as computed by sizeof. */
  254. #define SIZEOF_LONG_DOUBLE 16
  255. /* Define to the size of `long long', as computed by sizeof. */
  256. /* #define SIZEOF_LONG_LONG 8 */
  257. /* Define to the size of `short', as computed by sizeof. */
  258. #define SIZEOF_SHORT 2
  259. /* Define to the size of `long', as computed by sizeof. */
  260. #define SIZEOF_LONG 4
  261. /* Define to the size of `size_t', as computed by sizeof. */
  262. #if defined(_WIN64)
  263. # define SIZEOF_SIZE_T 8
  264. #else
  265. # define SIZEOF_SIZE_T 4
  266. #endif
  267. /* Define to the size of `curl_off_t', as computed by sizeof. */
  268. #define SIZEOF_CURL_OFF_T 8
  269. /* ---------------------------------------------------------------- */
  270. /* BSD-style lwIP TCP/IP stack SPECIFIC */
  271. /* ---------------------------------------------------------------- */
  272. /* Define to use BSD-style lwIP TCP/IP stack. */
  273. /* #define USE_LWIPSOCK 1 */
  274. #ifdef USE_LWIPSOCK
  275. # undef USE_WINSOCK
  276. # undef HAVE_WINSOCK2_H
  277. # undef HAVE_WS2TCPIP_H
  278. # undef HAVE_ERRNO_H
  279. # undef HAVE_GETHOSTNAME
  280. # undef LWIP_POSIX_SOCKETS_IO_NAMES
  281. # undef RECV_TYPE_ARG1
  282. # undef RECV_TYPE_ARG3
  283. # undef SEND_TYPE_ARG1
  284. # undef SEND_TYPE_ARG3
  285. # define HAVE_FREEADDRINFO
  286. # define HAVE_GETADDRINFO
  287. # define HAVE_GETHOSTBYNAME
  288. # define HAVE_GETHOSTBYNAME_R
  289. # define HAVE_GETHOSTBYNAME_R_6
  290. # define LWIP_POSIX_SOCKETS_IO_NAMES 0
  291. # define RECV_TYPE_ARG1 int
  292. # define RECV_TYPE_ARG3 size_t
  293. # define SEND_TYPE_ARG1 int
  294. # define SEND_TYPE_ARG3 size_t
  295. #endif
  296. /* ---------------------------------------------------------------- */
  297. /* Watt-32 tcp/ip SPECIFIC */
  298. /* ---------------------------------------------------------------- */
  299. #ifdef USE_WATT32
  300. #include <tcp.h>
  301. #undef byte
  302. #undef word
  303. #undef USE_WINSOCK
  304. #undef HAVE_WINSOCK2_H
  305. #undef HAVE_WS2TCPIP_H
  306. #define HAVE_GETADDRINFO
  307. #define HAVE_SYS_IOCTL_H
  308. #define HAVE_SYS_SOCKET_H
  309. #define HAVE_NETINET_IN_H
  310. #define HAVE_NETDB_H
  311. #define HAVE_ARPA_INET_H
  312. #define HAVE_FREEADDRINFO
  313. #define SOCKET int
  314. #endif
  315. /* ---------------------------------------------------------------- */
  316. /* COMPILER SPECIFIC */
  317. /* ---------------------------------------------------------------- */
  318. /* Define to nothing if compiler does not support 'const' qualifier. */
  319. /* #define const */
  320. /* Define to nothing if compiler does not support 'volatile' qualifier. */
  321. /* #define volatile */
  322. /* Windows should not have HAVE_GMTIME_R defined */
  323. /* #undef HAVE_GMTIME_R */
  324. /* Define if the compiler supports C99 variadic macro style. */
  325. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  326. #define HAVE_VARIADIC_MACROS_C99 1
  327. #endif
  328. /* Define if the compiler supports the 'long long' data type. */
  329. #if defined(__MINGW32__) || \
  330. (defined(_MSC_VER) && (_MSC_VER >= 1310)) || \
  331. (defined(__BORLANDC__) && (__BORLANDC__ >= 0x561))
  332. #define HAVE_LONGLONG 1
  333. #endif
  334. /* Define to avoid VS2005 complaining about portable C functions. */
  335. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  336. #define _CRT_SECURE_NO_DEPRECATE 1
  337. #define _CRT_NONSTDC_NO_DEPRECATE 1
  338. #endif
  339. /* mingw-w64, mingw using >= MSVCR80, and visual studio >= 2005 (MSVCR80)
  340. all default to 64-bit time_t unless _USE_32BIT_TIME_T is defined */
  341. #ifdef __MINGW32__
  342. # include <_mingw.h>
  343. #endif
  344. #if defined(__MINGW64_VERSION_MAJOR) || \
  345. (defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0800)) || \
  346. (defined(_MSC_VER) && (_MSC_VER >= 1400))
  347. # ifndef _USE_32BIT_TIME_T
  348. # define SIZEOF_TIME_T 8
  349. # else
  350. # define SIZEOF_TIME_T 4
  351. # endif
  352. #endif
  353. /* Define some minimum and default build targets for Visual Studio */
  354. #if defined(_MSC_VER)
  355. /* Officially, Microsoft's Windows SDK versions 6.X does not support Windows
  356. 2000 as a supported build target. VS2008 default installations provides
  357. an embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
  358. valid build target for VS2008. Popular belief is that binaries built with
  359. VS2008 using Windows SDK versions v6.X and Windows 2000 as a build target
  360. are functional. */
  361. # define VS2008_MIN_TARGET 0x0500
  362. /* The minimum build target for VS2012 is Vista unless Update 1 is installed
  363. and the v110_xp toolset is chosen. */
  364. # if defined(_USING_V110_SDK71_)
  365. # define VS2012_MIN_TARGET 0x0501
  366. # else
  367. # define VS2012_MIN_TARGET 0x0600
  368. # endif
  369. /* VS2008 default build target is Windows Vista. We override default target
  370. to be Windows XP. */
  371. # define VS2008_DEF_TARGET 0x0501
  372. /* VS2012 default build target is Windows Vista unless Update 1 is installed
  373. and the v110_xp toolset is chosen. */
  374. # if defined(_USING_V110_SDK71_)
  375. # define VS2012_DEF_TARGET 0x0501
  376. # else
  377. # define VS2012_DEF_TARGET 0x0600
  378. # endif
  379. #endif
  380. /* VS2008 default target settings and minimum build target check. */
  381. #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600)
  382. # ifndef _WIN32_WINNT
  383. # define _WIN32_WINNT VS2008_DEF_TARGET
  384. # endif
  385. # ifndef WINVER
  386. # define WINVER VS2008_DEF_TARGET
  387. # endif
  388. # if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
  389. # error VS2008 does not support Windows build targets prior to Windows 2000
  390. # endif
  391. #endif
  392. /* VS2012 default target settings and minimum build target check. */
  393. #if defined(_MSC_VER) && (_MSC_VER >= 1700)
  394. # ifndef _WIN32_WINNT
  395. # define _WIN32_WINNT VS2012_DEF_TARGET
  396. # endif
  397. # ifndef WINVER
  398. # define WINVER VS2012_DEF_TARGET
  399. # endif
  400. # if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
  401. # if defined(_USING_V110_SDK71_)
  402. # error VS2012 does not support Windows build targets prior to Windows XP
  403. # else
  404. # error VS2012 does not support Windows build targets prior to Windows \
  405. Vista
  406. # endif
  407. # endif
  408. #endif
  409. /* When no build target is specified Pelles C 5.00 and later default build
  410. target is Windows Vista. We override default target to be Windows 2000. */
  411. #if defined(__POCC__) && (__POCC__ >= 500)
  412. # ifndef _WIN32_WINNT
  413. # define _WIN32_WINNT 0x0500
  414. # endif
  415. # ifndef WINVER
  416. # define WINVER 0x0500
  417. # endif
  418. #endif
  419. /* Availability of freeaddrinfo, getaddrinfo, and if_nametoindex
  420. functions is quite convoluted, compiler dependent and even build target
  421. dependent. */
  422. #if defined(HAVE_WS2TCPIP_H)
  423. # if defined(__POCC__)
  424. # define HAVE_FREEADDRINFO 1
  425. # define HAVE_GETADDRINFO 1
  426. # define HAVE_GETADDRINFO_THREADSAFE 1
  427. # elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
  428. # define HAVE_FREEADDRINFO 1
  429. # define HAVE_GETADDRINFO 1
  430. # define HAVE_GETADDRINFO_THREADSAFE 1
  431. # elif defined(_MSC_VER) && (_MSC_VER >= 1200)
  432. # define HAVE_FREEADDRINFO 1
  433. # define HAVE_GETADDRINFO 1
  434. # define HAVE_GETADDRINFO_THREADSAFE 1
  435. # endif
  436. #endif
  437. #if defined(__POCC__)
  438. # ifndef _MSC_VER
  439. # error Microsoft extensions /Ze compiler option is required
  440. # endif
  441. # ifndef __POCC__OLDNAMES
  442. # error Compatibility names /Go compiler option is required
  443. # endif
  444. #endif
  445. /* ---------------------------------------------------------------- */
  446. /* STRUCT RELATED */
  447. /* ---------------------------------------------------------------- */
  448. /* Define if you have struct sockaddr_storage. */
  449. #if !defined(__SALFORDC__) && !defined(__BORLANDC__)
  450. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  451. #endif
  452. /* Define if you have struct timeval. */
  453. #define HAVE_STRUCT_TIMEVAL 1
  454. /* Define if struct sockaddr_in6 has the sin6_scope_id member. */
  455. #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
  456. #if defined(HAVE_WINSOCK2_H) && defined(_WIN32_WINNT) && \
  457. (_WIN32_WINNT >= 0x0600)
  458. #define HAVE_STRUCT_POLLFD 1
  459. #endif
  460. /* ---------------------------------------------------------------- */
  461. /* LARGE FILE SUPPORT */
  462. /* ---------------------------------------------------------------- */
  463. #if defined(_MSC_VER) && !defined(_WIN32_WCE)
  464. # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
  465. # define USE_WIN32_LARGE_FILES
  466. # else
  467. # define USE_WIN32_SMALL_FILES
  468. # endif
  469. #endif
  470. #if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
  471. # define USE_WIN32_LARGE_FILES
  472. #endif
  473. #if defined(__POCC__)
  474. # undef USE_WIN32_LARGE_FILES
  475. #endif
  476. #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
  477. # define USE_WIN32_SMALL_FILES
  478. #endif
  479. /* ---------------------------------------------------------------- */
  480. /* DNS RESOLVER SPECIALTY */
  481. /* ---------------------------------------------------------------- */
  482. /*
  483. * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
  484. */
  485. /* Define to enable c-ares asynchronous DNS lookups. */
  486. /* #define USE_ARES 1 */
  487. /* Default define to enable threaded asynchronous DNS lookups. */
  488. #if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \
  489. !defined(USE_THREADS_WIN32)
  490. # define USE_THREADS_WIN32 1
  491. #endif
  492. #if defined(USE_ARES) && defined(USE_THREADS_WIN32)
  493. # error "Only one DNS lookup specialty may be defined at most"
  494. #endif
  495. /* ---------------------------------------------------------------- */
  496. /* LDAP SUPPORT */
  497. /* ---------------------------------------------------------------- */
  498. #if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK)
  499. #undef USE_WIN32_LDAP
  500. #define HAVE_LDAP_SSL_H 1
  501. #define HAVE_LDAP_URL_PARSE 1
  502. #elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
  503. #undef USE_WIN32_LDAP
  504. #define HAVE_LDAP_URL_PARSE 1
  505. #else
  506. #undef HAVE_LDAP_URL_PARSE
  507. #define HAVE_LDAP_SSL 1
  508. #define USE_WIN32_LDAP 1
  509. #endif
  510. #if defined(__POCC__) && defined(USE_WIN32_LDAP)
  511. # define CURL_DISABLE_LDAP 1
  512. #endif
  513. /* Define to use the Windows crypto library. */
  514. #if !defined(CURL_WINDOWS_APP)
  515. #define USE_WIN32_CRYPTO
  516. #endif
  517. /* Define to use Unix sockets. */
  518. #define USE_UNIX_SOCKETS
  519. /* ---------------------------------------------------------------- */
  520. /* ADDITIONAL DEFINITIONS */
  521. /* ---------------------------------------------------------------- */
  522. /* Define cpu-machine-OS */
  523. #undef OS
  524. #if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
  525. #define OS "i386-pc-win32"
  526. #elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */
  527. #define OS "x86_64-pc-win32"
  528. #elif defined(_M_IA64) || defined(__ia64__) /* Itanium */
  529. #define OS "ia64-pc-win32"
  530. #elif defined(_M_ARM_NT) || defined(__arm__) /* ARMv7-Thumb2 (Windows RT) */
  531. #define OS "thumbv7a-pc-win32"
  532. #elif defined(_M_ARM64) || defined(__aarch64__) /* ARM64 (Windows 10) */
  533. #define OS "aarch64-pc-win32"
  534. #else
  535. #define OS "unknown-pc-win32"
  536. #endif
  537. /* Name of package */
  538. #define PACKAGE "curl"
  539. /* If you want to build curl with the built-in manual */
  540. #define USE_MANUAL 1
  541. #if defined(__POCC__) || defined(USE_IPV6)
  542. # define ENABLE_IPV6 1
  543. #endif
  544. #endif /* HEADER_CURL_CONFIG_WIN32_H */