config-win32.h 19 KB

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