• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 - 2021, 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  ***************************************************************************/
24 
25 /* ================================================================ */
26 /*               Hand crafted config file for Windows               */
27 /* ================================================================ */
28 
29 /* ---------------------------------------------------------------- */
30 /*                          HEADER FILES                            */
31 /* ---------------------------------------------------------------- */
32 
33 /* Define if you have the <arpa/inet.h> header file. */
34 /* #define HAVE_ARPA_INET_H 1 */
35 
36 /* Define if you have the <assert.h> header file. */
37 #define HAVE_ASSERT_H 1
38 
39 /* Define if you have the <errno.h> header file. */
40 #define HAVE_ERRNO_H 1
41 
42 /* Define if you have the <fcntl.h> header file. */
43 #define HAVE_FCNTL_H 1
44 
45 /* Define if you have the <getopt.h> header file. */
46 #if defined(__MINGW32__) || defined(__POCC__)
47 #define HAVE_GETOPT_H 1
48 #endif
49 
50 /* Define to 1 if you have the <inttypes.h> header file. */
51 #if defined(_MSC_VER) && (_MSC_VER >= 1800)
52 #define HAVE_INTTYPES_H 1
53 #endif
54 
55 /* Define if you have the <io.h> header file. */
56 #define HAVE_IO_H 1
57 
58 /* Define if you have the <locale.h> header file. */
59 #define HAVE_LOCALE_H 1
60 
61 /* Define if you need <malloc.h> header even with <stdlib.h> header file. */
62 #if !defined(__SALFORDC__) && !defined(__POCC__)
63 #define NEED_MALLOC_H 1
64 #endif
65 
66 /* Define if you have the <netdb.h> header file. */
67 /* #define HAVE_NETDB_H 1 */
68 
69 /* Define if you have the <netinet/in.h> header file. */
70 /* #define HAVE_NETINET_IN_H 1 */
71 
72 /* Define if you have the <process.h> header file. */
73 #ifndef __SALFORDC__
74 #define HAVE_PROCESS_H 1
75 #endif
76 
77 /* Define if you have the <signal.h> header file. */
78 #define HAVE_SIGNAL_H 1
79 
80 /* Define if you have the <ssl.h> header file. */
81 /* #define HAVE_SSL_H 1 */
82 
83 /* Define to 1 if you have the <stdbool.h> header file. */
84 #if defined(_MSC_VER) && (_MSC_VER >= 1800)
85 #define HAVE_STDBOOL_H 1
86 #endif
87 
88 /* Define if you have the <stdlib.h> header file. */
89 #define HAVE_STDLIB_H 1
90 
91 /* Define if you have the <sys/param.h> header file. */
92 /* #define HAVE_SYS_PARAM_H 1 */
93 
94 /* Define if you have the <sys/select.h> header file. */
95 /* #define HAVE_SYS_SELECT_H 1 */
96 
97 /* Define if you have the <sys/socket.h> header file. */
98 /* #define HAVE_SYS_SOCKET_H 1 */
99 
100 /* Define if you have the <sys/sockio.h> header file. */
101 /* #define HAVE_SYS_SOCKIO_H 1 */
102 
103 /* Define if you have the <sys/stat.h> header file. */
104 #define HAVE_SYS_STAT_H 1
105 
106 /* Define if you have the <sys/time.h> header file. */
107 /* #define HAVE_SYS_TIME_H 1 */
108 
109 /* Define if you have the <sys/types.h> header file. */
110 #define HAVE_SYS_TYPES_H 1
111 
112 /* Define if you have the <sys/utime.h> header file. */
113 #ifndef __BORLANDC__
114 #define HAVE_SYS_UTIME_H 1
115 #endif
116 
117 /* Define if you have the <termio.h> header file. */
118 /* #define HAVE_TERMIO_H 1 */
119 
120 /* Define if you have the <termios.h> header file. */
121 /* #define HAVE_TERMIOS_H 1 */
122 
123 /* Define if you have the <time.h> header file. */
124 #define HAVE_TIME_H 1
125 
126 /* Define if you have the <unistd.h> header file. */
127 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
128     defined(__POCC__)
129 #define HAVE_UNISTD_H 1
130 #endif
131 
132 /* Define if you have the <windows.h> header file. */
133 #define HAVE_WINDOWS_H 1
134 
135 /* Define if you have the <winsock.h> header file. */
136 #define HAVE_WINSOCK_H 1
137 
138 /* Define if you have the <winsock2.h> header file. */
139 #ifndef __SALFORDC__
140 #define HAVE_WINSOCK2_H 1
141 #endif
142 
143 /* Define if you have the <ws2tcpip.h> header file. */
144 #ifndef __SALFORDC__
145 #define HAVE_WS2TCPIP_H 1
146 #endif
147 
148 /* ---------------------------------------------------------------- */
149 /*                        OTHER HEADER INFO                         */
150 /* ---------------------------------------------------------------- */
151 
152 /* Define if sig_atomic_t is an available typedef. */
153 #define HAVE_SIG_ATOMIC_T 1
154 
155 /* Define if you have the ANSI C header files. */
156 #define STDC_HEADERS 1
157 
158 /* Define if you can safely include both <sys/time.h> and <time.h>. */
159 /* #define TIME_WITH_SYS_TIME 1 */
160 
161 /* Define to 1 if bool is an available type. */
162 #if defined(_MSC_VER) && (_MSC_VER >= 1800)
163 #define HAVE_BOOL_T 1
164 #endif
165 
166 /* ---------------------------------------------------------------- */
167 /*                             FUNCTIONS                            */
168 /* ---------------------------------------------------------------- */
169 
170 /* Define if you have the closesocket function. */
171 #define HAVE_CLOSESOCKET 1
172 
173 /* Define if you don't have vprintf but do have _doprnt. */
174 /* #define HAVE_DOPRNT 1 */
175 
176 /* Define if you have the ftruncate function. */
177 /* #define HAVE_FTRUNCATE 1 */
178 
179 /* Define to 1 if you have the `getpeername' function. */
180 #define HAVE_GETPEERNAME 1
181 
182 /* Define to 1 if you have the getsockname function. */
183 #define HAVE_GETSOCKNAME 1
184 
185 /* Define if you have the gethostname function. */
186 #define HAVE_GETHOSTNAME 1
187 
188 /* Define if you have the getpass function. */
189 /* #define HAVE_GETPASS 1 */
190 
191 /* Define if you have the getservbyname function. */
192 #define HAVE_GETSERVBYNAME 1
193 
194 /* Define if you have the getprotobyname function. */
195 #define HAVE_GETPROTOBYNAME
196 
197 /* Define if you have the gettimeofday function. */
198 /* #define HAVE_GETTIMEOFDAY 1 */
199 
200 /* Define if you have the inet_addr function. */
201 #define HAVE_INET_ADDR 1
202 
203 /* Define if you have the ioctlsocket function. */
204 #define HAVE_IOCTLSOCKET 1
205 
206 /* Define if you have a working ioctlsocket FIONBIO function. */
207 #define HAVE_IOCTLSOCKET_FIONBIO 1
208 
209 /* Define if you have the RAND_screen function when using SSL. */
210 #define HAVE_RAND_SCREEN 1
211 
212 /* Define if you have the `RAND_status' function when using SSL. */
213 #define HAVE_RAND_STATUS 1
214 
215 /* Define if you have the `CRYPTO_cleanup_all_ex_data' function.
216    This is present in OpenSSL versions after 0.9.6b */
217 #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
218 
219 /* Define if you have the select function. */
220 #define HAVE_SELECT 1
221 
222 /* Define if you have the setlocale function. */
223 #define HAVE_SETLOCALE 1
224 
225 /* Define if you have the setmode function. */
226 #define HAVE_SETMODE 1
227 
228 /* Define if you have the setvbuf function. */
229 #define HAVE_SETVBUF 1
230 
231 /* Define if you have the socket function. */
232 #define HAVE_SOCKET 1
233 
234 /* Define if you have the strcasecmp function. */
235 #ifdef __MINGW32__
236 #define HAVE_STRCASECMP 1
237 #endif
238 
239 /* Define if you have the strdup function. */
240 #define HAVE_STRDUP 1
241 
242 /* Define if you have the strftime function. */
243 #define HAVE_STRFTIME 1
244 
245 /* Define if you have the stricmp function. */
246 #define HAVE_STRICMP 1
247 
248 /* Define if you have the strnicmp function. */
249 #define HAVE_STRNICMP 1
250 
251 /* Define if you have the strstr function. */
252 #define HAVE_STRSTR 1
253 
254 /* Define if you have the strtoll function. */
255 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__) || \
256     (defined(_MSC_VER) && (_MSC_VER >= 1800))
257 #define HAVE_STRTOLL 1
258 #endif
259 
260 /* Define if you have the utime function. */
261 #ifndef __BORLANDC__
262 #define HAVE_UTIME 1
263 #endif
264 
265 /* Define if you have the recv function. */
266 #define HAVE_RECV 1
267 
268 /* Define to the type of arg 1 for recv. */
269 #define RECV_TYPE_ARG1 SOCKET
270 
271 /* Define to the type of arg 2 for recv. */
272 #define RECV_TYPE_ARG2 char *
273 
274 /* Define to the type of arg 3 for recv. */
275 #define RECV_TYPE_ARG3 int
276 
277 /* Define to the type of arg 4 for recv. */
278 #define RECV_TYPE_ARG4 int
279 
280 /* Define to the function return type for recv. */
281 #define RECV_TYPE_RETV int
282 
283 /* Define if you have the recvfrom function. */
284 #define HAVE_RECVFROM 1
285 
286 /* Define to the type of arg 1 for recvfrom. */
287 #define RECVFROM_TYPE_ARG1 SOCKET
288 
289 /* Define to the type pointed by arg 2 for recvfrom. */
290 #define RECVFROM_TYPE_ARG2 char
291 
292 /* Define to the type of arg 3 for recvfrom. */
293 #define RECVFROM_TYPE_ARG3 int
294 
295 /* Define to the type of arg 4 for recvfrom. */
296 #define RECVFROM_TYPE_ARG4 int
297 
298 /* Define to the type pointed by arg 5 for recvfrom. */
299 #define RECVFROM_TYPE_ARG5 struct sockaddr
300 
301 /* Define to the type pointed by arg 6 for recvfrom. */
302 #define RECVFROM_TYPE_ARG6 int
303 
304 /* Define to the function return type for recvfrom. */
305 #define RECVFROM_TYPE_RETV int
306 
307 /* Define if you have the send function. */
308 #define HAVE_SEND 1
309 
310 /* Define to the type of arg 1 for send. */
311 #define SEND_TYPE_ARG1 SOCKET
312 
313 /* Define to the type qualifier of arg 2 for send. */
314 #define SEND_QUAL_ARG2 const
315 
316 /* Define to the type of arg 2 for send. */
317 #define SEND_TYPE_ARG2 char *
318 
319 /* Define to the type of arg 3 for send. */
320 #define SEND_TYPE_ARG3 int
321 
322 /* Define to the type of arg 4 for send. */
323 #define SEND_TYPE_ARG4 int
324 
325 /* Define to the function return type for send. */
326 #define SEND_TYPE_RETV int
327 
328 /* ---------------------------------------------------------------- */
329 /*                       TYPEDEF REPLACEMENTS                       */
330 /* ---------------------------------------------------------------- */
331 
332 /* Define if in_addr_t is not an available 'typedefed' type. */
333 #define in_addr_t unsigned long
334 
335 /* Define if ssize_t is not an available 'typedefed' type. */
336 #ifndef _SSIZE_T_DEFINED
337 #  if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
338       defined(__POCC__) || \
339       defined(__MINGW32__)
340 #  elif defined(_WIN64)
341 #    define _SSIZE_T_DEFINED
342 #    define ssize_t __int64
343 #  else
344 #    define _SSIZE_T_DEFINED
345 #    define ssize_t int
346 #  endif
347 #endif
348 
349 /* ---------------------------------------------------------------- */
350 /*                            TYPE SIZES                            */
351 /* ---------------------------------------------------------------- */
352 
353 /* Define to the size of `int', as computed by sizeof. */
354 #define SIZEOF_INT 4
355 
356 /* Define to the size of `long double', as computed by sizeof. */
357 #define SIZEOF_LONG_DOUBLE 16
358 
359 /* Define to the size of `long long', as computed by sizeof. */
360 /* #define SIZEOF_LONG_LONG 8 */
361 
362 /* Define to the size of `short', as computed by sizeof. */
363 #define SIZEOF_SHORT 2
364 
365 /* Define to the size of `long', as computed by sizeof. */
366 #define SIZEOF_LONG 4
367 
368 /* Define to the size of `size_t', as computed by sizeof. */
369 #if defined(_WIN64)
370 #  define SIZEOF_SIZE_T 8
371 #else
372 #  define SIZEOF_SIZE_T 4
373 #endif
374 
375 /* Define to the size of `curl_off_t', as computed by sizeof. */
376 #define SIZEOF_CURL_OFF_T 8
377 
378 /* ---------------------------------------------------------------- */
379 /*               BSD-style lwIP TCP/IP stack SPECIFIC               */
380 /* ---------------------------------------------------------------- */
381 
382 /* Define to use BSD-style lwIP TCP/IP stack. */
383 /* #define USE_LWIPSOCK 1 */
384 
385 #ifdef USE_LWIPSOCK
386 #  undef USE_WINSOCK
387 #  undef HAVE_WINSOCK_H
388 #  undef HAVE_WINSOCK2_H
389 #  undef HAVE_WS2TCPIP_H
390 #  undef HAVE_ERRNO_H
391 #  undef HAVE_GETHOSTNAME
392 #  undef LWIP_POSIX_SOCKETS_IO_NAMES
393 #  undef RECV_TYPE_ARG1
394 #  undef RECV_TYPE_ARG3
395 #  undef SEND_TYPE_ARG1
396 #  undef SEND_TYPE_ARG3
397 #  define HAVE_FREEADDRINFO
398 #  define HAVE_GETADDRINFO
399 #  define HAVE_GETHOSTBYNAME
400 #  define HAVE_GETHOSTBYNAME_R
401 #  define HAVE_GETHOSTBYNAME_R_6
402 #  define LWIP_POSIX_SOCKETS_IO_NAMES 0
403 #  define RECV_TYPE_ARG1 int
404 #  define RECV_TYPE_ARG3 size_t
405 #  define SEND_TYPE_ARG1 int
406 #  define SEND_TYPE_ARG3 size_t
407 #endif
408 
409 /* ---------------------------------------------------------------- */
410 /*                        Watt-32 tcp/ip SPECIFIC                   */
411 /* ---------------------------------------------------------------- */
412 
413 #ifdef USE_WATT32
414   #include <tcp.h>
415   #undef byte
416   #undef word
417   #undef USE_WINSOCK
418   #undef HAVE_WINSOCK_H
419   #undef HAVE_WINSOCK2_H
420   #undef HAVE_WS2TCPIP_H
421   #define HAVE_GETADDRINFO
422   #define HAVE_SYS_IOCTL_H
423   #define HAVE_SYS_SOCKET_H
424   #define HAVE_NETINET_IN_H
425   #define HAVE_NETDB_H
426   #define HAVE_ARPA_INET_H
427   #define HAVE_FREEADDRINFO
428   #define SOCKET int
429 #endif
430 
431 
432 /* ---------------------------------------------------------------- */
433 /*                        COMPILER SPECIFIC                         */
434 /* ---------------------------------------------------------------- */
435 
436 /* Define to nothing if compiler does not support 'const' qualifier. */
437 /* #define const */
438 
439 /* Define to nothing if compiler does not support 'volatile' qualifier. */
440 /* #define volatile */
441 
442 /* Windows should not have HAVE_GMTIME_R defined */
443 /* #undef HAVE_GMTIME_R */
444 
445 /* Define if the compiler supports C99 variadic macro style. */
446 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
447 #define HAVE_VARIADIC_MACROS_C99 1
448 #endif
449 
450 /* Define if the compiler supports the 'long long' data type. */
451 #if defined(__MINGW32__) || defined(__WATCOMC__)      || \
452     (defined(_MSC_VER)     && (_MSC_VER     >= 1310)) || \
453     (defined(__BORLANDC__) && (__BORLANDC__ >= 0x561))
454 #define HAVE_LONGLONG 1
455 #endif
456 
457 /* Define to avoid VS2005 complaining about portable C functions. */
458 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
459 #define _CRT_SECURE_NO_DEPRECATE 1
460 #define _CRT_NONSTDC_NO_DEPRECATE 1
461 #endif
462 
463 /* mingw-w64, mingw using >= MSVCR80, and visual studio >= 2005 (MSVCR80)
464    all default to 64-bit time_t unless _USE_32BIT_TIME_T is defined */
465 #ifdef __MINGW32__
466 #  include <_mingw.h>
467 #endif
468 #if defined(__MINGW64_VERSION_MAJOR) || \
469     (defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0800)) || \
470     (defined(_MSC_VER) && (_MSC_VER >= 1400))
471 #  ifndef _USE_32BIT_TIME_T
472 #    define SIZEOF_TIME_T 8
473 #  else
474 #    define SIZEOF_TIME_T 4
475 #  endif
476 #endif
477 
478 /* Define some minimum and default build targets for Visual Studio */
479 #if defined(_MSC_VER)
480    /* Officially, Microsoft's Windows SDK versions 6.X does not support Windows
481       2000 as a supported build target. VS2008 default installations provides
482       an embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
483       valid build target for VS2008. Popular belief is that binaries built with
484       VS2008 using Windows SDK versions v6.X and Windows 2000 as a build target
485       are functional. */
486 #  define VS2008_MIN_TARGET 0x0500
487 
488    /* The minimum build target for VS2012 is Vista unless Update 1 is installed
489       and the v110_xp toolset is chosen. */
490 #  if defined(_USING_V110_SDK71_)
491 #    define VS2012_MIN_TARGET 0x0501
492 #  else
493 #    define VS2012_MIN_TARGET 0x0600
494 #  endif
495 
496    /* VS2008 default build target is Windows Vista. We override default target
497       to be Windows XP. */
498 #  define VS2008_DEF_TARGET 0x0501
499 
500    /* VS2012 default build target is Windows Vista unless Update 1 is installed
501       and the v110_xp toolset is chosen. */
502 #  if defined(_USING_V110_SDK71_)
503 #    define VS2012_DEF_TARGET 0x0501
504 #  else
505 #    define VS2012_DEF_TARGET 0x0600
506 #  endif
507 #endif
508 
509 /* VS2008 default target settings and minimum build target check. */
510 #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600)
511 #  ifndef _WIN32_WINNT
512 #    define _WIN32_WINNT VS2008_DEF_TARGET
513 #  endif
514 #  ifndef WINVER
515 #    define WINVER VS2008_DEF_TARGET
516 #  endif
517 #  if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
518 #    error VS2008 does not support Windows build targets prior to Windows 2000
519 #  endif
520 #endif
521 
522 /* VS2012 default target settings and minimum build target check. */
523 #if defined(_MSC_VER) && (_MSC_VER >= 1700)
524 #  ifndef _WIN32_WINNT
525 #    define _WIN32_WINNT VS2012_DEF_TARGET
526 #  endif
527 #  ifndef WINVER
528 #    define WINVER VS2012_DEF_TARGET
529 #  endif
530 #  if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
531 #    if defined(_USING_V110_SDK71_)
532 #      error VS2012 does not support Windows build targets prior to Windows XP
533 #    else
534 #      error VS2012 does not support Windows build targets prior to Windows \
535 Vista
536 #    endif
537 #  endif
538 #endif
539 
540 /* When no build target is specified Pelles C 5.00 and later default build
541    target is Windows Vista. We override default target to be Windows 2000. */
542 #if defined(__POCC__) && (__POCC__ >= 500)
543 #  ifndef _WIN32_WINNT
544 #    define _WIN32_WINNT 0x0500
545 #  endif
546 #  ifndef WINVER
547 #    define WINVER 0x0500
548 #  endif
549 #endif
550 
551 /* Availability of freeaddrinfo, getaddrinfo, and if_nametoindex
552    functions is quite convoluted, compiler dependent and even build target
553    dependent. */
554 #if defined(HAVE_WS2TCPIP_H)
555 #  if defined(__POCC__)
556 #    define HAVE_FREEADDRINFO           1
557 #    define HAVE_GETADDRINFO            1
558 #    define HAVE_GETADDRINFO_THREADSAFE 1
559 #  elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
560 #    define HAVE_FREEADDRINFO           1
561 #    define HAVE_GETADDRINFO            1
562 #    define HAVE_GETADDRINFO_THREADSAFE 1
563 #  elif defined(_MSC_VER) && (_MSC_VER >= 1200)
564 #    define HAVE_FREEADDRINFO           1
565 #    define HAVE_GETADDRINFO            1
566 #    define HAVE_GETADDRINFO_THREADSAFE 1
567 #  endif
568 #endif
569 
570 #if defined(__POCC__)
571 #  ifndef _MSC_VER
572 #    error Microsoft extensions /Ze compiler option is required
573 #  endif
574 #  ifndef __POCC__OLDNAMES
575 #    error Compatibility names /Go compiler option is required
576 #  endif
577 #endif
578 
579 /* ---------------------------------------------------------------- */
580 /*                          STRUCT RELATED                          */
581 /* ---------------------------------------------------------------- */
582 
583 /* Define if you have struct sockaddr_storage. */
584 #if !defined(__SALFORDC__) && !defined(__BORLANDC__)
585 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
586 #endif
587 
588 /* Define if you have struct timeval. */
589 #define HAVE_STRUCT_TIMEVAL 1
590 
591 /* Define if struct sockaddr_in6 has the sin6_scope_id member. */
592 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
593 
594 #if defined(HAVE_WINSOCK2_H) && defined(_WIN32_WINNT) && \
595     (_WIN32_WINNT >= 0x0600)
596 #define HAVE_STRUCT_POLLFD 1
597 #endif
598 
599 /* ---------------------------------------------------------------- */
600 /*                        LARGE FILE SUPPORT                        */
601 /* ---------------------------------------------------------------- */
602 
603 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
604 #  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
605 #    define USE_WIN32_LARGE_FILES
606 #  else
607 #    define USE_WIN32_SMALL_FILES
608 #  endif
609 #endif
610 
611 #if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
612 #  define USE_WIN32_LARGE_FILES
613 #endif
614 
615 #if defined(__WATCOMC__) && !defined(USE_WIN32_LARGE_FILES)
616 #  define USE_WIN32_LARGE_FILES
617 #endif
618 
619 #if defined(__POCC__)
620 #  undef USE_WIN32_LARGE_FILES
621 #endif
622 
623 #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
624 #  define USE_WIN32_SMALL_FILES
625 #endif
626 
627 /* ---------------------------------------------------------------- */
628 /*                       DNS RESOLVER SPECIALTY                     */
629 /* ---------------------------------------------------------------- */
630 
631 /*
632  * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
633  */
634 
635 /* Define to enable c-ares asynchronous DNS lookups. */
636 /* #define USE_ARES 1 */
637 
638 /* Default define to enable threaded asynchronous DNS lookups. */
639 #if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \
640     !defined(USE_THREADS_WIN32)
641 #  define USE_THREADS_WIN32 1
642 #endif
643 
644 #if defined(USE_ARES) && defined(USE_THREADS_WIN32)
645 #  error "Only one DNS lookup specialty may be defined at most"
646 #endif
647 
648 /* ---------------------------------------------------------------- */
649 /*                           LDAP SUPPORT                           */
650 /* ---------------------------------------------------------------- */
651 
652 #if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK)
653 #undef USE_WIN32_LDAP
654 #define HAVE_LDAP_SSL_H 1
655 #define HAVE_LDAP_URL_PARSE 1
656 #elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
657 #undef USE_WIN32_LDAP
658 #define HAVE_LDAP_URL_PARSE 1
659 #else
660 #undef HAVE_LDAP_URL_PARSE
661 #define HAVE_LDAP_SSL 1
662 #define USE_WIN32_LDAP 1
663 #endif
664 
665 #if defined(__WATCOMC__) && defined(USE_WIN32_LDAP)
666 #if __WATCOMC__ < 1280
667 #define WINBERAPI  __declspec(cdecl)
668 #define WINLDAPAPI __declspec(cdecl)
669 #endif
670 #endif
671 
672 #if defined(__POCC__) && defined(USE_WIN32_LDAP)
673 #  define CURL_DISABLE_LDAP 1
674 #endif
675 
676 /* Define to use the Windows crypto library. */
677 #if !defined(CURL_WINDOWS_APP)
678 #define USE_WIN32_CRYPTO
679 #endif
680 
681 /* Define to use Unix sockets. */
682 #define USE_UNIX_SOCKETS
683 
684 /* ---------------------------------------------------------------- */
685 /*                       ADDITIONAL DEFINITIONS                     */
686 /* ---------------------------------------------------------------- */
687 
688 /* Define cpu-machine-OS */
689 #undef OS
690 #if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
691 #define OS "i386-pc-win32"
692 #elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */
693 #define OS "x86_64-pc-win32"
694 #elif defined(_M_IA64) || defined(__ia64__) /* Itanium */
695 #define OS "ia64-pc-win32"
696 #elif defined(_M_ARM_NT) || defined(__arm__) /* ARMv7-Thumb2 (Windows RT) */
697 #define OS "thumbv7a-pc-win32"
698 #elif defined(_M_ARM64) || defined(__aarch64__) /* ARM64 (Windows 10) */
699 #define OS "aarch64-pc-win32"
700 #else
701 #define OS "unknown-pc-win32"
702 #endif
703 
704 /* Name of package */
705 #define PACKAGE "curl"
706 
707 /* If you want to build curl with the built-in manual */
708 #define USE_MANUAL 1
709 
710 #if defined(__POCC__) || defined(USE_IPV6)
711 #  define ENABLE_IPV6 1
712 #endif
713 
714 #endif /* HEADER_CURL_CONFIG_WIN32_H */
715