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