config-win32.h 20 KB

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