config-win32.h 20 KB

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