config-win32.h 19 KB

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