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