Go to the documentation of this file.00001 #ifndef HEADER_CURL_CONFIG_WIN32_H
00002 #define HEADER_CURL_CONFIG_WIN32_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #define HAVE_ASSERT_H 1
00038
00039
00040
00041
00042
00043 #define HAVE_ERRNO_H 1
00044
00045
00046
00047
00048
00049 #define HAVE_FCNTL_H 1
00050
00051
00052 #if defined(__MINGW32__) || defined(__POCC__)
00053 #define HAVE_GETOPT_H 1
00054 #endif
00055
00056
00057 #if defined(_MSC_VER) && (_MSC_VER >= 1800)
00058 #define HAVE_INTTYPES_H 1
00059 #endif
00060
00061
00062 #define HAVE_IO_H 1
00063
00064
00065 #define HAVE_LIMITS_H 1
00066
00067
00068 #define HAVE_LOCALE_H 1
00069
00070
00071 #if !defined(__SALFORDC__) && !defined(__POCC__)
00072 #define NEED_MALLOC_H 1
00073 #endif
00074
00075
00076
00077
00078
00079
00080
00081
00082 #ifndef __SALFORDC__
00083 #define HAVE_PROCESS_H 1
00084 #endif
00085
00086
00087 #define HAVE_SIGNAL_H 1
00088
00089
00090
00091
00092
00093
00094
00095
00096 #if defined(_MSC_VER) && (_MSC_VER >= 1800)
00097 #define HAVE_STDBOOL_H 1
00098 #endif
00099
00100
00101 #define HAVE_STDLIB_H 1
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116 #define HAVE_SYS_STAT_H 1
00117
00118
00119
00120
00121
00122 #define HAVE_SYS_TYPES_H 1
00123
00124
00125 #ifndef __BORLANDC__
00126 #define HAVE_SYS_UTIME_H 1
00127 #endif
00128
00129
00130
00131
00132
00133
00134
00135
00136 #define HAVE_TIME_H 1
00137
00138
00139 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
00140 defined(__POCC__)
00141 #define HAVE_UNISTD_H 1
00142 #endif
00143
00144
00145 #define HAVE_WINDOWS_H 1
00146
00147
00148 #define HAVE_WINSOCK_H 1
00149
00150
00151 #ifndef __SALFORDC__
00152 #define HAVE_WINSOCK2_H 1
00153 #endif
00154
00155
00156 #ifndef __SALFORDC__
00157 #define HAVE_WS2TCPIP_H 1
00158 #endif
00159
00160
00161
00162
00163
00164
00165 #define HAVE_SIG_ATOMIC_T 1
00166
00167
00168 #define STDC_HEADERS 1
00169
00170
00171
00172
00173
00174 #if defined(_MSC_VER) && (_MSC_VER >= 1800)
00175 #define HAVE_BOOL_T 1
00176 #endif
00177
00178
00179
00180
00181
00182
00183 #define HAVE_CLOSESOCKET 1
00184
00185
00186
00187
00188
00189 #define HAVE_FTRUNCATE 1
00190
00191
00192 #define HAVE_GETHOSTBYADDR 1
00193
00194
00195 #define HAVE_GETHOSTNAME 1
00196
00197
00198
00199
00200
00201 #define HAVE_GETSERVBYNAME 1
00202
00203
00204 #define HAVE_GETPROTOBYNAME
00205
00206
00207
00208
00209
00210 #define HAVE_INET_ADDR 1
00211
00212
00213 #define HAVE_IOCTLSOCKET 1
00214
00215
00216 #define HAVE_IOCTLSOCKET_FIONBIO 1
00217
00218
00219 #define HAVE_PERROR 1
00220
00221
00222 #define HAVE_RAND_SCREEN 1
00223
00224
00225 #define HAVE_RAND_STATUS 1
00226
00227
00228
00229 #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
00230
00231
00232 #define HAVE_SELECT 1
00233
00234
00235 #define HAVE_SETLOCALE 1
00236
00237
00238 #define HAVE_SETMODE 1
00239
00240
00241 #define HAVE_SETVBUF 1
00242
00243
00244 #define HAVE_SOCKET 1
00245
00246
00247
00248
00249
00250 #define HAVE_STRDUP 1
00251
00252
00253 #define HAVE_STRFTIME 1
00254
00255
00256 #define HAVE_STRICMP 1
00257
00258
00259
00260
00261
00262 #define HAVE_STRNICMP 1
00263
00264
00265 #define HAVE_STRSTR 1
00266
00267
00268 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__) || \
00269 (defined(_MSC_VER) && (_MSC_VER >= 1800))
00270 #define HAVE_STRTOLL 1
00271 #endif
00272
00273
00274
00275
00276
00277
00278
00279
00280 #ifndef __BORLANDC__
00281 #define HAVE_UTIME 1
00282 #endif
00283
00284
00285 #define GETNAMEINFO_QUAL_ARG1 const
00286
00287
00288 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
00289
00290
00291 #define GETNAMEINFO_TYPE_ARG2 socklen_t
00292
00293
00294 #define GETNAMEINFO_TYPE_ARG46 DWORD
00295
00296
00297 #define GETNAMEINFO_TYPE_ARG7 int
00298
00299
00300 #define HAVE_RECV 1
00301
00302
00303 #define RECV_TYPE_ARG1 SOCKET
00304
00305
00306 #define RECV_TYPE_ARG2 char *
00307
00308
00309 #define RECV_TYPE_ARG3 int
00310
00311
00312 #define RECV_TYPE_ARG4 int
00313
00314
00315 #define RECV_TYPE_RETV int
00316
00317
00318 #define HAVE_RECVFROM 1
00319
00320
00321 #define RECVFROM_TYPE_ARG1 SOCKET
00322
00323
00324 #define RECVFROM_TYPE_ARG2 char
00325
00326
00327 #define RECVFROM_TYPE_ARG3 int
00328
00329
00330 #define RECVFROM_TYPE_ARG4 int
00331
00332
00333 #define RECVFROM_TYPE_ARG5 struct sockaddr
00334
00335
00336 #define RECVFROM_TYPE_ARG6 int
00337
00338
00339 #define RECVFROM_TYPE_RETV int
00340
00341
00342 #define HAVE_SEND 1
00343
00344
00345 #define SEND_TYPE_ARG1 SOCKET
00346
00347
00348 #define SEND_QUAL_ARG2 const
00349
00350
00351 #define SEND_TYPE_ARG2 char *
00352
00353
00354 #define SEND_TYPE_ARG3 int
00355
00356
00357 #define SEND_TYPE_ARG4 int
00358
00359
00360 #define SEND_TYPE_RETV int
00361
00362
00363
00364
00365
00366
00367 #define in_addr_t unsigned long
00368
00369
00370 #define RETSIGTYPE void
00371
00372
00373 #ifndef _SSIZE_T_DEFINED
00374 # if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
00375 defined(__POCC__) || \
00376 defined(__MINGW32__)
00377 # elif defined(_WIN64)
00378 # define _SSIZE_T_DEFINED
00379 # define ssize_t __int64
00380 # else
00381 # define _SSIZE_T_DEFINED
00382 # define ssize_t int
00383 # endif
00384 #endif
00385
00386
00387
00388
00389
00390
00391 #define SIZEOF_INT 4
00392
00393
00394 #define SIZEOF_LONG_DOUBLE 16
00395
00396
00397
00398
00399
00400 #define SIZEOF_SHORT 2
00401
00402
00403 #if defined(_WIN64)
00404 # define SIZEOF_SIZE_T 8
00405 #else
00406 # define SIZEOF_SIZE_T 4
00407 #endif
00408
00409
00410
00411
00412
00413
00414
00415
00416 #ifdef USE_LWIPSOCK
00417 # undef USE_WINSOCK
00418 # undef HAVE_WINSOCK_H
00419 # undef HAVE_WINSOCK2_H
00420 # undef HAVE_WS2TCPIP_H
00421 # undef HAVE_ERRNO_H
00422 # undef HAVE_GETHOSTNAME
00423 # undef HAVE_GETNAMEINFO
00424 # undef LWIP_POSIX_SOCKETS_IO_NAMES
00425 # undef RECV_TYPE_ARG1
00426 # undef RECV_TYPE_ARG3
00427 # undef SEND_TYPE_ARG1
00428 # undef SEND_TYPE_ARG3
00429 # define HAVE_FREEADDRINFO
00430 # define HAVE_GETADDRINFO
00431 # define HAVE_GETHOSTBYNAME
00432 # define HAVE_GETHOSTBYNAME_R
00433 # define HAVE_GETHOSTBYNAME_R_6
00434 # define LWIP_POSIX_SOCKETS_IO_NAMES 0
00435 # define RECV_TYPE_ARG1 int
00436 # define RECV_TYPE_ARG3 size_t
00437 # define SEND_TYPE_ARG1 int
00438 # define SEND_TYPE_ARG3 size_t
00439 #endif
00440
00441
00442
00443
00444
00445 #ifdef USE_WATT32
00446 #include <tcp.h>
00447 #undef byte
00448 #undef word
00449 #undef USE_WINSOCK
00450 #undef HAVE_WINSOCK_H
00451 #undef HAVE_WINSOCK2_H
00452 #undef HAVE_WS2TCPIP_H
00453 #define HAVE_GETADDRINFO
00454 #define HAVE_GETNAMEINFO
00455 #define HAVE_SYS_IOCTL_H
00456 #define HAVE_SYS_SOCKET_H
00457 #define HAVE_NETINET_IN_H
00458 #define HAVE_NETDB_H
00459 #define HAVE_ARPA_INET_H
00460 #define HAVE_FREEADDRINFO
00461 #define SOCKET int
00462 #endif
00463
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474
00475
00476
00477
00478
00479 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
00480 #define HAVE_VARIADIC_MACROS_C99 1
00481 #endif
00482
00483
00484 #if defined(__MINGW32__) || defined(__WATCOMC__) || \
00485 (defined(_MSC_VER) && (_MSC_VER >= 1310)) || \
00486 (defined(__BORLANDC__) && (__BORLANDC__ >= 0x561))
00487 #define HAVE_LONGLONG 1
00488 #endif
00489
00490
00491 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
00492 #define _CRT_SECURE_NO_DEPRECATE 1
00493 #define _CRT_NONSTDC_NO_DEPRECATE 1
00494 #endif
00495
00496
00497
00498 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
00499 # ifndef _USE_32BIT_TIME_T
00500 # define SIZEOF_TIME_T 8
00501 # else
00502 # define SIZEOF_TIME_T 4
00503 # endif
00504 #endif
00505
00506
00507 #if defined(_MSC_VER)
00508
00509
00510
00511
00512
00513
00514 # define VS2008_MIN_TARGET 0x0500
00515
00516
00517
00518 # if defined(_USING_V110_SDK71_)
00519 # define VS2012_MIN_TARGET 0x0501
00520 # else
00521 # define VS2012_MIN_TARGET 0x0600
00522 # endif
00523
00524
00525
00526 # define VS2008_DEF_TARGET 0x0501
00527
00528
00529
00530 # if defined(_USING_V110_SDK71_)
00531 # define VS2012_DEF_TARGET 0x0501
00532 # else
00533 # define VS2012_DEF_TARGET 0x0600
00534 # endif
00535 #endif
00536
00537
00538 #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600)
00539 # ifndef _WIN32_WINNT
00540 # define _WIN32_WINNT VS2008_DEF_TARGET
00541 # endif
00542 # ifndef WINVER
00543 # define WINVER VS2008_DEF_TARGET
00544 # endif
00545 # if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
00546 # error VS2008 does not support Windows build targets prior to Windows 2000
00547 # endif
00548 #endif
00549
00550
00551 #if defined(_MSC_VER) && (_MSC_VER >= 1700)
00552 # ifndef _WIN32_WINNT
00553 # define _WIN32_WINNT VS2012_DEF_TARGET
00554 # endif
00555 # ifndef WINVER
00556 # define WINVER VS2012_DEF_TARGET
00557 # endif
00558 # if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
00559 # if defined(_USING_V110_SDK71_)
00560 # error VS2012 does not support Windows build targets prior to Windows XP
00561 # else
00562 # error VS2012 does not support Windows build targets prior to Windows \
00563 Vista
00564 # endif
00565 # endif
00566 #endif
00567
00568
00569
00570 #if defined(__POCC__) && (__POCC__ >= 500)
00571 # ifndef _WIN32_WINNT
00572 # define _WIN32_WINNT 0x0500
00573 # endif
00574 # ifndef WINVER
00575 # define WINVER 0x0500
00576 # endif
00577 #endif
00578
00579
00580
00581 #if defined(HAVE_WS2TCPIP_H)
00582 # if defined(__POCC__)
00583 # define HAVE_FREEADDRINFO 1
00584 # define HAVE_GETADDRINFO 1
00585 # define HAVE_GETADDRINFO_THREADSAFE 1
00586 # define HAVE_GETNAMEINFO 1
00587 # elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
00588 # define HAVE_FREEADDRINFO 1
00589 # define HAVE_GETADDRINFO 1
00590 # define HAVE_GETADDRINFO_THREADSAFE 1
00591 # define HAVE_GETNAMEINFO 1
00592 # elif defined(_MSC_VER) && (_MSC_VER >= 1200)
00593 # define HAVE_FREEADDRINFO 1
00594 # define HAVE_GETADDRINFO 1
00595 # define HAVE_GETADDRINFO_THREADSAFE 1
00596 # define HAVE_GETNAMEINFO 1
00597 # endif
00598 #endif
00599
00600 #if defined(__POCC__)
00601 # ifndef _MSC_VER
00602 # error Microsoft extensions /Ze compiler option is required
00603 # endif
00604 # ifndef __POCC__OLDNAMES
00605 # error Compatibility names /Go compiler option is required
00606 # endif
00607 #endif
00608
00609
00610
00611
00612
00613
00614 #if !defined(__SALFORDC__) && !defined(__BORLANDC__)
00615 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
00616 #endif
00617
00618
00619 #define HAVE_STRUCT_TIMEVAL 1
00620
00621
00622 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
00623
00624 #if defined(HAVE_WINSOCK2_H) && defined(_WIN32_WINNT) && \
00625 (_WIN32_WINNT >= 0x0600)
00626 #define HAVE_STRUCT_POLLFD 1
00627 #endif
00628
00629
00630
00631
00632
00633 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
00634 # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
00635 # define USE_WIN32_LARGE_FILES
00636 # else
00637 # define USE_WIN32_SMALL_FILES
00638 # endif
00639 #endif
00640
00641 #if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
00642 # define USE_WIN32_LARGE_FILES
00643 #endif
00644
00645 #if defined(__WATCOMC__) && !defined(USE_WIN32_LARGE_FILES)
00646 # define USE_WIN32_LARGE_FILES
00647 #endif
00648
00649 #if defined(__POCC__)
00650 # undef USE_WIN32_LARGE_FILES
00651 #endif
00652
00653 #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
00654 # define USE_WIN32_SMALL_FILES
00655 #endif
00656
00657
00658
00659
00660
00661
00662
00663
00664
00665
00666
00667
00668
00669 #if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \
00670 !defined(USE_THREADS_WIN32)
00671 # define USE_THREADS_WIN32 1
00672 #endif
00673
00674 #if defined(USE_ARES) && defined(USE_THREADS_WIN32)
00675 # error "Only one DNS lookup specialty may be defined at most"
00676 #endif
00677
00678
00679
00680
00681
00682 #if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK)
00683 #undef USE_WIN32_LDAP
00684 #define HAVE_LDAP_SSL_H 1
00685 #define HAVE_LDAP_URL_PARSE 1
00686 #elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
00687 #undef USE_WIN32_LDAP
00688 #define HAVE_LDAP_URL_PARSE 1
00689 #else
00690 #undef HAVE_LDAP_URL_PARSE
00691 #define USE_WIN32_LDAP 1
00692 #endif
00693
00694 #if defined(__WATCOMC__) && defined(USE_WIN32_LDAP)
00695 #if __WATCOMC__ < 1280
00696 #define WINBERAPI __declspec(cdecl)
00697 #define WINLDAPAPI __declspec(cdecl)
00698 #endif
00699 #endif
00700
00701 #if defined(__POCC__) && defined(USE_WIN32_LDAP)
00702 # define CURL_DISABLE_LDAP 1
00703 #endif
00704
00705
00706 #if !defined(USE_OPENSSL) && !defined(USE_NSS)
00707 #define USE_WIN32_CRYPTO
00708 #endif
00709
00710
00711
00712
00713
00714
00715 #undef OS
00716 #if defined(_M_IX86) || defined(__i386__)
00717 #define OS "i386-pc-win32"
00718 #elif defined(_M_X64) || defined(__x86_64__)
00719 #define OS "x86_64-pc-win32"
00720 #elif defined(_M_IA64)
00721 #define OS "ia64-pc-win32"
00722 #else
00723 #define OS "unknown-pc-win32"
00724 #endif
00725
00726
00727 #define PACKAGE "curl"
00728
00729
00730 #define USE_MANUAL 1
00731
00732 #if defined(__POCC__) || defined(USE_IPV6)
00733 # define ENABLE_IPV6 1
00734 #endif
00735
00736 #endif