config-win32.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  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 - 2011, 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 http://curl.haxx.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. ***************************************************************************/
  24. /* ================================================================ */
  25. /* Hand crafted config file for Windows */
  26. /* ================================================================ */
  27. /* ---------------------------------------------------------------- */
  28. /* HEADER FILES */
  29. /* ---------------------------------------------------------------- */
  30. /* Define if you have the <arpa/inet.h> header file. */
  31. /* #define HAVE_ARPA_INET_H 1 */
  32. /* Define if you have the <assert.h> header file. */
  33. #define HAVE_ASSERT_H 1
  34. /* Define if you have the <crypto.h> header file. */
  35. /* #define HAVE_CRYPTO_H 1 */
  36. /* Define if you have the <errno.h> header file. */
  37. #define HAVE_ERRNO_H 1
  38. /* Define if you have the <err.h> header file. */
  39. /* #define HAVE_ERR_H 1 */
  40. /* Define if you have the <fcntl.h> header file. */
  41. #define HAVE_FCNTL_H 1
  42. /* Define if you have the <getopt.h> header file. */
  43. #if defined(__MINGW32__) || defined(__POCC__)
  44. #define HAVE_GETOPT_H 1
  45. #endif
  46. /* Define if you have the <io.h> header file. */
  47. #define HAVE_IO_H 1
  48. /* Define if you have the <limits.h> header file. */
  49. #define HAVE_LIMITS_H 1
  50. /* Define if you have the <locale.h> header file. */
  51. #define HAVE_LOCALE_H 1
  52. /* Define if you need <malloc.h> header even with <stdlib.h> header file. */
  53. #if !defined(__SALFORDC__) && !defined(__POCC__)
  54. #define NEED_MALLOC_H 1
  55. #endif
  56. /* Define if you have the <netdb.h> header file. */
  57. /* #define HAVE_NETDB_H 1 */
  58. /* Define if you have the <netinet/in.h> header file. */
  59. /* #define HAVE_NETINET_IN_H 1 */
  60. /* Define if you have the <process.h> header file. */
  61. #ifndef __SALFORDC__
  62. #define HAVE_PROCESS_H 1
  63. #endif
  64. /* Define if you have the <signal.h> header file. */
  65. #define HAVE_SIGNAL_H 1
  66. /* Define if you have the <sgtty.h> header file. */
  67. /* #define HAVE_SGTTY_H 1 */
  68. /* Define if you have the <ssl.h> header file. */
  69. /* #define HAVE_SSL_H 1 */
  70. /* Define if you have the <stdlib.h> header file. */
  71. #define HAVE_STDLIB_H 1
  72. /* Define if you have the <sys/param.h> header file. */
  73. /* #define HAVE_SYS_PARAM_H 1 */
  74. /* Define if you have the <sys/select.h> header file. */
  75. /* #define HAVE_SYS_SELECT_H 1 */
  76. /* Define if you have the <sys/socket.h> header file. */
  77. /* #define HAVE_SYS_SOCKET_H 1 */
  78. /* Define if you have the <sys/sockio.h> header file. */
  79. /* #define HAVE_SYS_SOCKIO_H 1 */
  80. /* Define if you have the <sys/stat.h> header file. */
  81. #define HAVE_SYS_STAT_H 1
  82. /* Define if you have the <sys/time.h> header file. */
  83. /* #define HAVE_SYS_TIME_H 1 */
  84. /* Define if you have the <sys/types.h> header file. */
  85. #define HAVE_SYS_TYPES_H 1
  86. /* Define if you have the <sys/utime.h> header file. */
  87. #ifndef __BORLANDC__
  88. #define HAVE_SYS_UTIME_H 1
  89. #endif
  90. /* Define if you have the <termio.h> header file. */
  91. /* #define HAVE_TERMIO_H 1 */
  92. /* Define if you have the <termios.h> header file. */
  93. /* #define HAVE_TERMIOS_H 1 */
  94. /* Define if you have the <time.h> header file. */
  95. #define HAVE_TIME_H 1
  96. /* Define if you have the <unistd.h> header file. */
  97. #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
  98. defined(__POCC__)
  99. #define HAVE_UNISTD_H 1
  100. #endif
  101. /* Define if you have the <windows.h> header file. */
  102. #define HAVE_WINDOWS_H 1
  103. /* Define if you have the <winsock.h> header file. */
  104. #define HAVE_WINSOCK_H 1
  105. /* Define if you have the <winsock2.h> header file. */
  106. #ifndef __SALFORDC__
  107. #define HAVE_WINSOCK2_H 1
  108. #endif
  109. /* Define if you have the <ws2tcpip.h> header file. */
  110. #ifndef __SALFORDC__
  111. #define HAVE_WS2TCPIP_H 1
  112. #endif
  113. /* ---------------------------------------------------------------- */
  114. /* OTHER HEADER INFO */
  115. /* ---------------------------------------------------------------- */
  116. /* Define if sig_atomic_t is an available typedef. */
  117. #define HAVE_SIG_ATOMIC_T 1
  118. /* Define if you have the ANSI C header files. */
  119. #define STDC_HEADERS 1
  120. /* Define if you can safely include both <sys/time.h> and <time.h>. */
  121. /* #define TIME_WITH_SYS_TIME 1 */
  122. /* ---------------------------------------------------------------- */
  123. /* FUNCTIONS */
  124. /* ---------------------------------------------------------------- */
  125. /* Define if you have the closesocket function. */
  126. #define HAVE_CLOSESOCKET 1
  127. /* Define if you don't have vprintf but do have _doprnt. */
  128. /* #define HAVE_DOPRNT 1 */
  129. /* Define if you have the ftruncate function. */
  130. #define HAVE_FTRUNCATE 1
  131. /* Define if you have the gethostbyaddr function. */
  132. #define HAVE_GETHOSTBYADDR 1
  133. /* Define if you have the gethostname function. */
  134. #define HAVE_GETHOSTNAME 1
  135. /* Define if you have the getpass function. */
  136. /* #define HAVE_GETPASS 1 */
  137. /* Define if you have the getservbyname function. */
  138. #define HAVE_GETSERVBYNAME 1
  139. /* Define if you have the getprotobyname function. */
  140. #define HAVE_GETPROTOBYNAME
  141. /* Define if you have the gettimeofday function. */
  142. /* #define HAVE_GETTIMEOFDAY 1 */
  143. /* Define if you have the inet_addr function. */
  144. #define HAVE_INET_ADDR 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 perror function. */
  150. #define HAVE_PERROR 1
  151. /* Define if you have the RAND_screen function when using SSL. */
  152. #define HAVE_RAND_SCREEN 1
  153. /* Define if you have the `RAND_status' function when using SSL. */
  154. #define HAVE_RAND_STATUS 1
  155. /* Define if you have the `CRYPTO_cleanup_all_ex_data' function.
  156. This is present in OpenSSL versions after 0.9.6b */
  157. #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
  158. /* Define if you have the select function. */
  159. #define HAVE_SELECT 1
  160. /* Define if you have the setlocale function. */
  161. #define HAVE_SETLOCALE 1
  162. /* Define if you have the setmode function. */
  163. #define HAVE_SETMODE 1
  164. /* Define if you have the setvbuf function. */
  165. #define HAVE_SETVBUF 1
  166. /* Define if you have the socket function. */
  167. #define HAVE_SOCKET 1
  168. /* Define if you have the strcasecmp function. */
  169. /* #define HAVE_STRCASECMP 1 */
  170. /* Define if you have the strdup function. */
  171. #define HAVE_STRDUP 1
  172. /* Define if you have the strftime function. */
  173. #define HAVE_STRFTIME 1
  174. /* Define if you have the stricmp function. */
  175. #define HAVE_STRICMP 1
  176. /* Define if you have the strncasecmp function. */
  177. /* #define HAVE_STRNCASECMP 1 */
  178. /* Define if you have the strnicmp function. */
  179. #define HAVE_STRNICMP 1
  180. /* Define if you have the strstr function. */
  181. #define HAVE_STRSTR 1
  182. /* Define if you have the strtoll function. */
  183. #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__)
  184. #define HAVE_STRTOLL 1
  185. #endif
  186. /* Define if you have the tcgetattr function. */
  187. /* #define HAVE_TCGETATTR 1 */
  188. /* Define if you have the tcsetattr function. */
  189. /* #define HAVE_TCSETATTR 1 */
  190. /* Define if you have the utime function. */
  191. #ifndef __BORLANDC__
  192. #define HAVE_UTIME 1
  193. #endif
  194. /* Define to the type qualifier of arg 1 for getnameinfo. */
  195. #define GETNAMEINFO_QUAL_ARG1 const
  196. /* Define to the type of arg 1 for getnameinfo. */
  197. #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
  198. /* Define to the type of arg 2 for getnameinfo. */
  199. #define GETNAMEINFO_TYPE_ARG2 socklen_t
  200. /* Define to the type of args 4 and 6 for getnameinfo. */
  201. #define GETNAMEINFO_TYPE_ARG46 DWORD
  202. /* Define to the type of arg 7 for getnameinfo. */
  203. #define GETNAMEINFO_TYPE_ARG7 int
  204. /* Define if you have the recv function. */
  205. #define HAVE_RECV 1
  206. /* Define to the type of arg 1 for recv. */
  207. #define RECV_TYPE_ARG1 SOCKET
  208. /* Define to the type of arg 2 for recv. */
  209. #define RECV_TYPE_ARG2 char *
  210. /* Define to the type of arg 3 for recv. */
  211. #define RECV_TYPE_ARG3 int
  212. /* Define to the type of arg 4 for recv. */
  213. #define RECV_TYPE_ARG4 int
  214. /* Define to the function return type for recv. */
  215. #define RECV_TYPE_RETV int
  216. /* Define if you have the recvfrom function. */
  217. #define HAVE_RECVFROM 1
  218. /* Define to the type of arg 1 for recvfrom. */
  219. #define RECVFROM_TYPE_ARG1 SOCKET
  220. /* Define to the type pointed by arg 2 for recvfrom. */
  221. #define RECVFROM_TYPE_ARG2 char
  222. /* Define to the type of arg 3 for recvfrom. */
  223. #define RECVFROM_TYPE_ARG3 int
  224. /* Define to the type of arg 4 for recvfrom. */
  225. #define RECVFROM_TYPE_ARG4 int
  226. /* Define to the type pointed by arg 5 for recvfrom. */
  227. #define RECVFROM_TYPE_ARG5 struct sockaddr
  228. /* Define to the type pointed by arg 6 for recvfrom. */
  229. #define RECVFROM_TYPE_ARG6 int
  230. /* Define to the function return type for recvfrom. */
  231. #define RECVFROM_TYPE_RETV int
  232. /* Define if you have the send function. */
  233. #define HAVE_SEND 1
  234. /* Define to the type of arg 1 for send. */
  235. #define SEND_TYPE_ARG1 SOCKET
  236. /* Define to the type qualifier of arg 2 for send. */
  237. #define SEND_QUAL_ARG2 const
  238. /* Define to the type of arg 2 for send. */
  239. #define SEND_TYPE_ARG2 char *
  240. /* Define to the type of arg 3 for send. */
  241. #define SEND_TYPE_ARG3 int
  242. /* Define to the type of arg 4 for send. */
  243. #define SEND_TYPE_ARG4 int
  244. /* Define to the function return type for send. */
  245. #define SEND_TYPE_RETV int
  246. /* ---------------------------------------------------------------- */
  247. /* TYPEDEF REPLACEMENTS */
  248. /* ---------------------------------------------------------------- */
  249. /* Define if in_addr_t is not an available 'typedefed' type. */
  250. #define in_addr_t unsigned long
  251. /* Define to the return type of signal handlers (int or void). */
  252. #define RETSIGTYPE void
  253. /* Define if ssize_t is not an available 'typedefed' type. */
  254. #ifndef _SSIZE_T_DEFINED
  255. # if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
  256. defined(__POCC__) || \
  257. defined(__MINGW32__)
  258. # elif defined(_WIN64)
  259. # define _SSIZE_T_DEFINED
  260. # define ssize_t __int64
  261. # else
  262. # define _SSIZE_T_DEFINED
  263. # define ssize_t int
  264. # endif
  265. #endif
  266. /* ---------------------------------------------------------------- */
  267. /* TYPE SIZES */
  268. /* ---------------------------------------------------------------- */
  269. /* Define to the size of `int', as computed by sizeof. */
  270. #define SIZEOF_INT 4
  271. /* Define to the size of `long double', as computed by sizeof. */
  272. #define SIZEOF_LONG_DOUBLE 16
  273. /* Define to the size of `long long', as computed by sizeof. */
  274. /* #define SIZEOF_LONG_LONG 8 */
  275. /* Define to the size of `short', as computed by sizeof. */
  276. #define SIZEOF_SHORT 2
  277. /* Define to the size of `size_t', as computed by sizeof. */
  278. #if defined(_WIN64)
  279. # define SIZEOF_SIZE_T 8
  280. #else
  281. # define SIZEOF_SIZE_T 4
  282. #endif
  283. /* ---------------------------------------------------------------- */
  284. /* BSD-style lwIP TCP/IP stack SPECIFIC */
  285. /* ---------------------------------------------------------------- */
  286. /* Define to use BSD-style lwIP TCP/IP stack. */
  287. /* #define USE_LWIPSOCK 1 */
  288. #ifdef USE_LWIPSOCK
  289. # undef USE_WINSOCK
  290. # undef HAVE_WINSOCK_H
  291. # undef HAVE_WINSOCK2_H
  292. # undef HAVE_WS2TCPIP_H
  293. # undef HAVE_ERRNO_H
  294. # undef HAVE_GETHOSTNAME
  295. # undef HAVE_GETNAMEINFO
  296. # undef LWIP_POSIX_SOCKETS_IO_NAMES
  297. # undef RECV_TYPE_ARG1
  298. # undef RECV_TYPE_ARG3
  299. # undef SEND_TYPE_ARG1
  300. # undef SEND_TYPE_ARG3
  301. # define HAVE_FREEADDRINFO
  302. # define HAVE_GETADDRINFO
  303. # define HAVE_GETHOSTBYNAME
  304. # define HAVE_GETHOSTBYNAME_R
  305. # define HAVE_GETHOSTBYNAME_R_6
  306. # define LWIP_POSIX_SOCKETS_IO_NAMES 0
  307. # define RECV_TYPE_ARG1 int
  308. # define RECV_TYPE_ARG3 size_t
  309. # define SEND_TYPE_ARG1 int
  310. # define SEND_TYPE_ARG3 size_t
  311. #endif
  312. /* ---------------------------------------------------------------- */
  313. /* Watt-32 tcp/ip SPECIFIC */
  314. /* ---------------------------------------------------------------- */
  315. #ifdef USE_WATT32
  316. #include <tcp.h>
  317. #undef byte
  318. #undef word
  319. #undef USE_WINSOCK
  320. #undef HAVE_WINSOCK_H
  321. #undef HAVE_WINSOCK2_H
  322. #undef HAVE_WS2TCPIP_H
  323. #define HAVE_GETADDRINFO
  324. #define HAVE_GETNAMEINFO
  325. #define HAVE_SYS_IOCTL_H
  326. #define HAVE_SYS_SOCKET_H
  327. #define HAVE_NETINET_IN_H
  328. #define HAVE_NETDB_H
  329. #define HAVE_ARPA_INET_H
  330. #define HAVE_FREEADDRINFO
  331. #define SOCKET int
  332. #endif
  333. /* ---------------------------------------------------------------- */
  334. /* COMPILER SPECIFIC */
  335. /* ---------------------------------------------------------------- */
  336. /* Define to nothing if compiler does not support 'const' qualifier. */
  337. /* #define const */
  338. /* Define to nothing if compiler does not support 'volatile' qualifier. */
  339. /* #define volatile */
  340. /* Windows should not have HAVE_GMTIME_R defined */
  341. /* #undef HAVE_GMTIME_R */
  342. /* Define if the compiler supports C99 variadic macro style. */
  343. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  344. #define HAVE_VARIADIC_MACROS_C99 1
  345. #endif
  346. /* Define if the compiler supports the 'long long' data type. */
  347. #if defined(__MINGW32__) || defined(__WATCOMC__)
  348. #define HAVE_LONGLONG 1
  349. #endif
  350. /* Define to avoid VS2005 complaining about portable C functions. */
  351. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  352. #define _CRT_SECURE_NO_DEPRECATE 1
  353. #define _CRT_NONSTDC_NO_DEPRECATE 1
  354. #endif
  355. /* VS2005 and later dafault size for time_t is 64-bit, unless
  356. _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
  357. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  358. # ifndef _USE_32BIT_TIME_T
  359. # define SIZEOF_TIME_T 8
  360. # else
  361. # define SIZEOF_TIME_T 4
  362. # endif
  363. #endif
  364. /* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
  365. 2000 as a supported build target. VS2008 default installations provide
  366. an embedded Windows SDK v6.0A along with the claim that Windows 2000 is
  367. a valid build target for VS2008. Popular belief is that binaries built
  368. with VS2008 using Windows SDK versions 6.X and Windows 2000 as a build
  369. target are functional. */
  370. #if defined(_MSC_VER) && (_MSC_VER >= 1500)
  371. # define VS2008_MIN_TARGET 0x0500
  372. #endif
  373. /* When no build target is specified VS2008 default build target is Windows
  374. Vista, which leaves out even Winsows XP. If no build target has been given
  375. for VS2008 we will target the minimum Officially supported build target,
  376. which happens to be Windows XP. */
  377. #if defined(_MSC_VER) && (_MSC_VER >= 1500)
  378. # define VS2008_DEF_TARGET 0x0501
  379. #endif
  380. /* VS2008 default target settings and minimum build target check. */
  381. #if defined(_MSC_VER) && (_MSC_VER >= 1500)
  382. # ifndef _WIN32_WINNT
  383. # define _WIN32_WINNT VS2008_DEF_TARGET
  384. # endif
  385. # ifndef WINVER
  386. # define WINVER VS2008_DEF_TARGET
  387. # endif
  388. # if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
  389. # error VS2008 does not support Windows build targets prior to Windows 2000
  390. # endif
  391. #endif
  392. /* When no build target is specified Pelles C 5.00 and later default build
  393. target is Windows Vista. We override default target to be Windows 2000. */
  394. #if defined(__POCC__) && (__POCC__ >= 500)
  395. # ifndef _WIN32_WINNT
  396. # define _WIN32_WINNT 0x0500
  397. # endif
  398. # ifndef WINVER
  399. # define WINVER 0x0500
  400. # endif
  401. #endif
  402. /* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is
  403. quite convoluted, compiler dependent and even build target dependent. */
  404. #if defined(HAVE_WS2TCPIP_H)
  405. # if defined(__POCC__)
  406. # define HAVE_FREEADDRINFO 1
  407. # define HAVE_GETADDRINFO 1
  408. # define HAVE_GETADDRINFO_THREADSAFE 1
  409. # define HAVE_GETNAMEINFO 1
  410. # elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
  411. # define HAVE_FREEADDRINFO 1
  412. # define HAVE_GETADDRINFO 1
  413. # define HAVE_GETADDRINFO_THREADSAFE 1
  414. # define HAVE_GETNAMEINFO 1
  415. # elif defined(_MSC_VER) && (_MSC_VER >= 1200)
  416. # define HAVE_FREEADDRINFO 1
  417. # define HAVE_GETADDRINFO 1
  418. # define HAVE_GETADDRINFO_THREADSAFE 1
  419. # define HAVE_GETNAMEINFO 1
  420. # endif
  421. #endif
  422. #if defined(__POCC__)
  423. # ifndef _MSC_VER
  424. # error Microsoft extensions /Ze compiler option is required
  425. # endif
  426. # ifndef __POCC__OLDNAMES
  427. # error Compatibility names /Go compiler option is required
  428. # endif
  429. #endif
  430. /* ---------------------------------------------------------------- */
  431. /* STRUCT RELATED */
  432. /* ---------------------------------------------------------------- */
  433. /* Define if you have struct sockaddr_storage. */
  434. #if !defined(__SALFORDC__) && !defined(__BORLANDC__)
  435. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  436. #endif
  437. /* Define if you have struct timeval. */
  438. #define HAVE_STRUCT_TIMEVAL 1
  439. /* Define if struct sockaddr_in6 has the sin6_scope_id member. */
  440. #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
  441. #if HAVE_WINSOCK2_H && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600)
  442. #define HAVE_STRUCT_POLLFD 1
  443. #endif
  444. /* ---------------------------------------------------------------- */
  445. /* LARGE FILE SUPPORT */
  446. /* ---------------------------------------------------------------- */
  447. #if defined(_MSC_VER) && !defined(_WIN32_WCE)
  448. # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
  449. # define USE_WIN32_LARGE_FILES
  450. # else
  451. # define USE_WIN32_SMALL_FILES
  452. # endif
  453. #endif
  454. #if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
  455. # define USE_WIN32_LARGE_FILES
  456. #endif
  457. #if defined(__WATCOMC__) && !defined(USE_WIN32_LARGE_FILES)
  458. # define USE_WIN32_LARGE_FILES
  459. #endif
  460. #if defined(__POCC__)
  461. # undef USE_WIN32_LARGE_FILES
  462. #endif
  463. #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
  464. # define USE_WIN32_SMALL_FILES
  465. #endif
  466. /* ---------------------------------------------------------------- */
  467. /* DNS RESOLVER SPECIALTY */
  468. /* ---------------------------------------------------------------- */
  469. /*
  470. * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
  471. */
  472. /* Define to enable c-ares asynchronous DNS lookups. */
  473. /* #define USE_ARES 1 */
  474. /* Default define to enable threaded asynchronous DNS lookups. */
  475. #if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \
  476. !defined(USE_THREADS_WIN32)
  477. # define USE_THREADS_WIN32 1
  478. #endif
  479. #if defined(USE_ARES) && defined(USE_THREADS_WIN32)
  480. # error "Only one DNS lookup specialty may be defined at most"
  481. #endif
  482. /* ---------------------------------------------------------------- */
  483. /* LDAP SUPPORT */
  484. /* ---------------------------------------------------------------- */
  485. #if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK)
  486. #undef CURL_LDAP_WIN
  487. #define HAVE_LDAP_SSL_H 1
  488. #define HAVE_LDAP_URL_PARSE 1
  489. #elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
  490. #undef CURL_LDAP_WIN
  491. #define HAVE_LDAP_URL_PARSE 1
  492. #else
  493. #undef HAVE_LDAP_URL_PARSE
  494. #define CURL_LDAP_WIN 1
  495. #endif
  496. #if defined(__WATCOMC__) && defined(CURL_LDAP_WIN)
  497. #if __WATCOMC__ < 1280
  498. #define WINBERAPI __declspec(cdecl)
  499. #define WINLDAPAPI __declspec(cdecl)
  500. #endif
  501. #endif
  502. #if defined(__POCC__) && defined(CURL_LDAP_WIN)
  503. # define CURL_DISABLE_LDAP 1
  504. #endif
  505. /* ---------------------------------------------------------------- */
  506. /* ADDITIONAL DEFINITIONS */
  507. /* ---------------------------------------------------------------- */
  508. /* Define cpu-machine-OS */
  509. #undef OS
  510. #if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
  511. #define OS "i386-pc-win32"
  512. #elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */
  513. #define OS "x86_64-pc-win32"
  514. #elif defined(_M_IA64) /* Itanium */
  515. #define OS "ia64-pc-win32"
  516. #else
  517. #define OS "unknown-pc-win32"
  518. #endif
  519. /* Name of package */
  520. #define PACKAGE "curl"
  521. /* If you want to build curl with the built-in manual */
  522. #define USE_MANUAL 1
  523. #if defined(__POCC__) || (USE_IPV6)
  524. # define ENABLE_IPV6 1
  525. #endif
  526. #endif /* HEADER_CURL_CONFIG_WIN32_H */