config-win32.h 19 KB

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