config-win32.h 20 KB

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