23
23
***************************************************************************/
25
25
/* ================================================================ */
26
/* src/config-win32.h - Hand crafted config file for windows */
26
/* Hand crafted config file for Windows */
27
27
/* ================================================================ */
29
29
/* ---------------------------------------------------------------- */
31
31
/* ---------------------------------------------------------------- */
33
/* Define if you have the <fcntl.h> header file. */
33
/* Define if you have the <arpa/inet.h> header file. */
34
/* #define HAVE_ARPA_INET_H 1 */
36
/* Define if you have the <assert.h> header file. */
37
#define HAVE_ASSERT_H 1
39
/* Define if you have the <crypto.h> header file. */
40
/* #define HAVE_CRYPTO_H 1 */
42
/* Define if you have the <errno.h> header file. */
43
#define HAVE_ERRNO_H 1
45
/* Define if you have the <err.h> header file. */
46
/* #define HAVE_ERR_H 1 */
48
/* Define if you have the <fcntl.h> header file. */
34
49
#define HAVE_FCNTL_H 1
36
/* Define if you have the <io.h> header file. */
51
/* Define if you have the <getopt.h> header file. */
52
#if defined(__MINGW32__) || defined(__POCC__)
53
#define HAVE_GETOPT_H 1
56
/* Define if you have the <io.h> header file. */
37
57
#define HAVE_IO_H 1
39
/* Define if you have the <limits.h> header file. */
59
/* Define if you have the <limits.h> header file. */
40
60
#define HAVE_LIMITS_H 1
42
/* Define if you have the <locale.h> header file. */
62
/* Define if you have the <locale.h> header file. */
43
63
#define HAVE_LOCALE_H 1
45
/* Define if you need the malloc.h header file even with stdlib.h */
65
/* Define if you need <malloc.h> header even with <stdlib.h> header file. */
46
66
#if !defined(__SALFORDC__) && !defined(__POCC__)
47
67
#define NEED_MALLOC_H 1
70
/* Define if you have the <netdb.h> header file. */
71
/* #define HAVE_NETDB_H 1 */
73
/* Define if you have the <netinet/in.h> header file. */
74
/* #define HAVE_NETINET_IN_H 1 */
76
/* Define if you have the <process.h> header file. */
78
#define HAVE_PROCESS_H 1
50
81
/* Define if you have the <signal.h> header file. */
51
82
#define HAVE_SIGNAL_H 1
53
/* Define if you have the <stdlib.h> header file. */
84
/* Define if you have the <sgtty.h> header file. */
85
/* #define HAVE_SGTTY_H 1 */
87
/* Define if you have the <ssl.h> header file. */
88
/* #define HAVE_SSL_H 1 */
90
/* Define if you have the <stdlib.h> header file. */
54
91
#define HAVE_STDLIB_H 1
56
/* Define if you have the <sys/time.h> header file */
93
/* Define if you have the <sys/param.h> header file. */
94
/* #define HAVE_SYS_PARAM_H 1 */
96
/* Define if you have the <sys/select.h> header file. */
97
/* #define HAVE_SYS_SELECT_H 1 */
99
/* Define if you have the <sys/socket.h> header file. */
100
/* #define HAVE_SYS_SOCKET_H 1 */
102
/* Define if you have the <sys/sockio.h> header file. */
103
/* #define HAVE_SYS_SOCKIO_H 1 */
105
/* Define if you have the <sys/stat.h> header file. */
106
#define HAVE_SYS_STAT_H 1
108
/* Define if you have the <sys/time.h> header file. */
57
109
/* #define HAVE_SYS_TIME_H 1 */
59
/* Define if you have the <sys/types.h> header file. */
111
/* Define if you have the <sys/types.h> header file. */
60
112
#define HAVE_SYS_TYPES_H 1
62
/* Define if you have the <sys/utime.h> header file. */
114
/* Define if you have the <sys/utime.h> header file. */
63
115
#ifndef __BORLANDC__
64
116
#define HAVE_SYS_UTIME_H 1
67
/* Define if you have the <time.h> header file. */
119
/* Define if you have the <termio.h> header file. */
120
/* #define HAVE_TERMIO_H 1 */
122
/* Define if you have the <termios.h> header file. */
123
/* #define HAVE_TERMIOS_H 1 */
125
/* Define if you have the <time.h> header file. */
68
126
#define HAVE_TIME_H 1
70
/* Define if you have the <unistd.h> header file. */
128
/* Define if you have the <unistd.h> header file. */
71
129
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
73
131
#define HAVE_UNISTD_H 1
76
/* Define if you have the <windows.h> header file. */
134
/* Define if you have the <windows.h> header file. */
77
135
#define HAVE_WINDOWS_H 1
79
/* Define if you have the <winsock.h> header file. */
137
/* Define if you have the <winsock.h> header file. */
80
138
#define HAVE_WINSOCK_H 1
82
/* Define if you have the <winsock2.h> header file. */
140
/* Define if you have the <winsock2.h> header file. */
83
141
#ifndef __SALFORDC__
84
142
#define HAVE_WINSOCK2_H 1
87
/* Define if you have the <ws2tcpip.h> header file. */
145
/* Define if you have the <ws2tcpip.h> header file. */
88
146
#ifndef __SALFORDC__
89
147
#define HAVE_WS2TCPIP_H 1
96
154
/* Define if sig_atomic_t is an available typedef. */
97
155
#define HAVE_SIG_ATOMIC_T 1
99
/* Define if you have the ANSI C header files. */
157
/* Define if you have the ANSI C header files. */
100
158
#define STDC_HEADERS 1
102
/* Define if you can safely include both <sys/time.h> and <time.h>. */
160
/* Define if you can safely include both <sys/time.h> and <time.h>. */
103
161
/* #define TIME_WITH_SYS_TIME 1 */
105
163
/* ---------------------------------------------------------------- */
107
165
/* ---------------------------------------------------------------- */
109
/* Define if you have the ftruncate function. */
167
/* Define if you have the closesocket function. */
168
#define HAVE_CLOSESOCKET 1
170
/* Define if you don't have vprintf but do have _doprnt. */
171
/* #define HAVE_DOPRNT 1 */
173
/* Define if you have the ftruncate function. */
110
174
#define HAVE_FTRUNCATE 1
176
/* Define if you have the gethostbyaddr function. */
177
#define HAVE_GETHOSTBYADDR 1
179
/* Define if you have the gethostname function. */
180
#define HAVE_GETHOSTNAME 1
182
/* Define if you have the getpass function. */
183
/* #define HAVE_GETPASS 1 */
185
/* Define if you have the getservbyname function. */
186
#define HAVE_GETSERVBYNAME 1
188
/* Define if you have the getprotobyname function. */
189
#define HAVE_GETPROTOBYNAME
191
/* Define if you have the gettimeofday function. */
192
/* #define HAVE_GETTIMEOFDAY 1 */
194
/* Define if you have the inet_addr function. */
195
#define HAVE_INET_ADDR 1
112
197
/* Define if you have the ioctlsocket function. */
113
198
#define HAVE_IOCTLSOCKET 1
115
200
/* Define if you have a working ioctlsocket FIONBIO function. */
116
201
#define HAVE_IOCTLSOCKET_FIONBIO 1
118
/* Define if you have the setlocale function. */
203
/* Define if you have the perror function. */
204
#define HAVE_PERROR 1
206
/* Define if you have the RAND_screen function when using SSL. */
207
#define HAVE_RAND_SCREEN 1
209
/* Define if you have the `RAND_status' function when using SSL. */
210
#define HAVE_RAND_STATUS 1
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
216
/* Define if you have the select function. */
217
#define HAVE_SELECT 1
219
/* Define if you have the setlocale function. */
119
220
#define HAVE_SETLOCALE 1
121
222
/* Define if you have the setmode function. */
122
223
#define HAVE_SETMODE 1
225
/* Define if you have the setvbuf function. */
226
#define HAVE_SETVBUF 1
228
/* Define if you have the socket function. */
229
#define HAVE_SOCKET 1
124
231
/* Define if you have the strcasecmp function. */
125
232
/* #define HAVE_STRCASECMP 1 */
127
/* Define if you have the strdup function. */
234
/* Define if you have the strdup function. */
128
235
#define HAVE_STRDUP 1
130
/* Define if you have the stricmp function. */
237
/* Define if you have the strftime function. */
238
#define HAVE_STRFTIME 1
240
/* Define if you have the stricmp function. */
131
241
#define HAVE_STRICMP 1
133
243
/* Define if you have the strncasecmp function. */
136
246
/* Define if you have the strnicmp function. */
137
247
#define HAVE_STRNICMP 1
139
/* Define if you have the utime function */
249
/* Define if you have the strstr function. */
250
#define HAVE_STRSTR 1
252
/* Define if you have the strtoll function. */
253
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__)
254
#define HAVE_STRTOLL 1
257
/* Define if you have the tcgetattr function. */
258
/* #define HAVE_TCGETATTR 1 */
260
/* Define if you have the tcsetattr function. */
261
/* #define HAVE_TCSETATTR 1 */
263
/* Define if you have the utime function. */
140
264
#ifndef __BORLANDC__
141
265
#define HAVE_UTIME 1
268
/* Define to the type qualifier of arg 1 for getnameinfo. */
269
#define GETNAMEINFO_QUAL_ARG1 const
271
/* Define to the type of arg 1 for getnameinfo. */
272
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
274
/* Define to the type of arg 2 for getnameinfo. */
275
#define GETNAMEINFO_TYPE_ARG2 socklen_t
277
/* Define to the type of args 4 and 6 for getnameinfo. */
278
#define GETNAMEINFO_TYPE_ARG46 DWORD
280
/* Define to the type of arg 7 for getnameinfo. */
281
#define GETNAMEINFO_TYPE_ARG7 int
144
283
/* Define if you have the recv function. */
145
284
#define HAVE_RECV 1
233
372
/* ---------------------------------------------------------------- */
235
/* The size of `int', as computed by sizeof. */
374
/* Define to the size of `int', as computed by sizeof. */
236
375
#define SIZEOF_INT 4
238
/* The size of `long double', as computed by sizeof. */
377
/* Define to the size of `long double', as computed by sizeof. */
239
378
#define SIZEOF_LONG_DOUBLE 16
241
/* The size of `long long', as computed by sizeof. */
380
/* Define to the size of `long long', as computed by sizeof. */
242
381
/* #define SIZEOF_LONG_LONG 8 */
244
/* The size of `short', as computed by sizeof. */
383
/* Define to the size of `short', as computed by sizeof. */
245
384
#define SIZEOF_SHORT 2
386
/* Define to the size of `size_t', as computed by sizeof. */
388
# define SIZEOF_SIZE_T 8
390
# define SIZEOF_SIZE_T 4
247
393
/* ---------------------------------------------------------------- */
248
394
/* STRUCT RELATED */
249
395
/* ---------------------------------------------------------------- */
251
/* Define this if you have struct sockaddr_storage */
397
/* Define if you have struct sockaddr_storage. */
252
398
#if !defined(__SALFORDC__) && !defined(__BORLANDC__)
253
399
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
256
/* Define this if you have struct timeval */
402
/* Define if you have struct timeval. */
257
403
#define HAVE_STRUCT_TIMEVAL 1
259
/* Define this if struct sockaddr_in6 has the sin6_scope_id member */
405
/* Define if struct sockaddr_in6 has the sin6_scope_id member. */
260
406
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
262
408
/* ---------------------------------------------------------------- */
409
/* BSD-style lwIP TCP/IP stack SPECIFIC */
410
/* ---------------------------------------------------------------- */
412
/* Define to use BSD-style lwIP TCP/IP stack. */
413
/* #define USE_LWIPSOCK 1 */
417
# undef HAVE_WINSOCK_H
418
# undef HAVE_WINSOCK2_H
419
# undef HAVE_WS2TCPIP_H
421
# undef HAVE_GETHOSTNAME
422
# undef HAVE_GETNAMEINFO
423
# undef LWIP_POSIX_SOCKETS_IO_NAMES
424
# undef RECV_TYPE_ARG1
425
# undef RECV_TYPE_ARG3
426
# undef SEND_TYPE_ARG1
427
# undef SEND_TYPE_ARG3
428
# define HAVE_FREEADDRINFO
429
# define HAVE_GETADDRINFO
430
# define HAVE_GETHOSTBYNAME
431
# define HAVE_GETHOSTBYNAME_R
432
# define HAVE_GETHOSTBYNAME_R_6
433
# define LWIP_POSIX_SOCKETS_IO_NAMES 0
434
# define RECV_TYPE_ARG1 int
435
# define RECV_TYPE_ARG3 size_t
436
# define SEND_TYPE_ARG1 int
437
# define SEND_TYPE_ARG3 size_t
440
/* ---------------------------------------------------------------- */
263
441
/* Watt-32 tcp/ip SPECIFIC */
264
442
/* ---------------------------------------------------------------- */
322
503
/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
323
2000 as a supported build target. VS2008 default installations provide an
324
embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
325
valid build target for VS2008. Popular belief is that binaries built using
326
Windows SDK versions 6.X and Windows 2000 as a build target are
504
2000 as a supported build target. VS2008 default installations provide
505
an embedded Windows SDK v6.0A along with the claim that Windows 2000 is
506
a valid build target for VS2008. Popular belief is that binaries built
507
with VS2008 using Windows SDK versions 6.X and Windows 2000 as a build
508
target are functional. */
328
509
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
329
# define VS2008_MINIMUM_TARGET 0x0500
510
# define VS2008_MIN_TARGET 0x0500
332
513
/* When no build target is specified VS2008 default build target is Windows
334
515
for VS2008 we will target the minimum Officially supported build target,
335
516
which happens to be Windows XP. */
336
517
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
337
# define VS2008_DEFAULT_TARGET 0x0501
518
# define VS2008_DEF_TARGET 0x0501
340
/* VS2008 default target settings and minimum build target check */
521
/* VS2008 default target settings and minimum build target check. */
341
522
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
342
523
# ifndef _WIN32_WINNT
343
# define _WIN32_WINNT VS2008_DEFAULT_TARGET
524
# define _WIN32_WINNT VS2008_DEF_TARGET
346
# define WINVER VS2008_DEFAULT_TARGET
527
# define WINVER VS2008_DEF_TARGET
348
# if (_WIN32_WINNT < VS2008_MINIMUM_TARGET) || \
349
(WINVER < VS2008_MINIMUM_TARGET)
529
# if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
350
530
# error VS2008 does not support Windows build targets prior to Windows 2000
423
603
/* ---------------------------------------------------------------- */
604
/* DNS RESOLVER SPECIALTY */
605
/* ---------------------------------------------------------------- */
608
* Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
611
/* Define to enable c-ares asynchronous DNS lookups. */
612
/* #define USE_ARES 1 */
614
/* Define to enable threaded asynchronous DNS lookups. */
615
#define USE_THREADS_WIN32 1
617
#if defined(USE_ARES) && defined(USE_THREADS_WIN32)
618
# error "Only one DNS lookup specialty may be defined at most"
621
/* ---------------------------------------------------------------- */
623
/* ---------------------------------------------------------------- */
625
#if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK)
627
#define HAVE_LDAP_SSL_H 1
628
#define HAVE_LDAP_URL_PARSE 1
629
#elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
631
#define HAVE_LDAP_URL_PARSE 1
633
#undef HAVE_LDAP_URL_PARSE
634
#define CURL_LDAP_WIN 1
637
#if defined(__WATCOMC__) && defined(CURL_LDAP_WIN)
638
#if __WATCOMC__ < 1280
639
#define WINBERAPI __declspec(cdecl)
640
#define WINLDAPAPI __declspec(cdecl)
644
#if defined(__POCC__) && defined(CURL_LDAP_WIN)
645
# define CURL_DISABLE_LDAP 1
648
/* ---------------------------------------------------------------- */
424
649
/* ADDITIONAL DEFINITIONS */
425
650
/* ---------------------------------------------------------------- */
427
652
/* Define cpu-machine-OS */
654
#if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
429
655
#define OS "i386-pc-win32"
656
#elif defined(_M_IA64) /* Itanium */
657
#define OS "ia64-pc-win32"
658
#elif defined(_M_X64) /* AMD64/EM64T - Not defined until MSVC 2005 */
659
#define OS "amd64-pc-win32"
661
#define OS "unknown-pc-win32"
432
/* Define to 1 if you want the built-in manual */
664
/* Name of package */
665
#define PACKAGE "curl"
667
/* If you want to build curl with the built-in manual */
433
668
#define USE_MANUAL 1
435
#if defined(__POCC__)
670
#if defined(__POCC__) || (USE_IPV6)
436
671
# define ENABLE_IPV6 1
439
#endif /* __SRC_CONFIG_WIN32_H */
674
#endif /* HEADER_CURL_CONFIG_WIN32_H */