~ubuntu-branches/ubuntu/raring/curl/raring-updates

« back to all changes in this revision

Viewing changes to lib/config-win32.h

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2011-11-13 21:07:32 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: package-import@ubuntu.com-20111113210732-bk5n25x2tu7aplur
Tags: upstream-7.22.0
ImportĀ upstreamĀ versionĀ 7.22.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __LIB_CONFIG_WIN32_H
2
 
#define __LIB_CONFIG_WIN32_H
 
1
#ifndef HEADER_CURL_CONFIG_WIN32_H
 
2
#define HEADER_CURL_CONFIG_WIN32_H
3
3
/***************************************************************************
4
4
 *                                  _   _ ____  _
5
5
 *  Project                     ___| | | |  _ \| |
23
23
 ***************************************************************************/
24
24
 
25
25
/* ================================================================ */
26
 
/*    lib/config-win32.h - Hand crafted config file for Windows     */
 
26
/*               Hand crafted config file for Windows               */
27
27
/* ================================================================ */
28
28
 
29
29
/* ---------------------------------------------------------------- */
30
30
/*                          HEADER FILES                            */
31
31
/* ---------------------------------------------------------------- */
32
32
 
33
 
/* Define if you have the <arpa/inet.h> header file.  */
 
33
/* Define if you have the <arpa/inet.h> header file. */
34
34
/* #define HAVE_ARPA_INET_H 1 */
35
35
 
36
 
/* Define if you have the <assert.h> header file.  */
 
36
/* Define if you have the <assert.h> header file. */
37
37
#define HAVE_ASSERT_H 1
38
38
 
39
 
/* Define if you have the <crypto.h> header file.  */
 
39
/* Define if you have the <crypto.h> header file. */
40
40
/* #define HAVE_CRYPTO_H 1 */
41
41
 
42
 
/* Define if you have the <err.h> header file.  */
 
42
/* Define if you have the <errno.h> header file. */
 
43
#define HAVE_ERRNO_H 1
 
44
 
 
45
/* Define if you have the <err.h> header file. */
43
46
/* #define HAVE_ERR_H 1 */
44
47
 
45
 
/* Define if you have the <fcntl.h> header file.  */
 
48
/* Define if you have the <fcntl.h> header file. */
46
49
#define HAVE_FCNTL_H 1
47
50
 
48
 
/* Define if you have the <getopt.h> header file.  */
49
 
/* #define HAVE_GETOPT_H 1 */
 
51
/* Define if you have the <getopt.h> header file. */
 
52
#if defined(__MINGW32__) || defined(__POCC__)
 
53
#define HAVE_GETOPT_H 1
 
54
#endif
50
55
 
51
 
/* Define if you have the <io.h> header file.  */
 
56
/* Define if you have the <io.h> header file. */
52
57
#define HAVE_IO_H 1
53
58
 
54
 
/* Define if you have the <limits.h> header file.  */
 
59
/* Define if you have the <limits.h> header file. */
55
60
#define HAVE_LIMITS_H 1
56
61
 
57
 
/* Define if you need the malloc.h header file even with stdlib.h  */
 
62
/* Define if you have the <locale.h> header file. */
 
63
#define HAVE_LOCALE_H 1
 
64
 
 
65
/* Define if you need <malloc.h> header even with <stdlib.h> header file. */
58
66
#if !defined(__SALFORDC__) && !defined(__POCC__)
59
67
#define NEED_MALLOC_H 1
60
68
#endif
61
69
 
62
 
/* Define if you have the <netdb.h> header file.  */
 
70
/* Define if you have the <netdb.h> header file. */
63
71
/* #define HAVE_NETDB_H 1 */
64
72
 
65
 
/* Define if you have the <netinet/in.h> header file.  */
 
73
/* Define if you have the <netinet/in.h> header file. */
66
74
/* #define HAVE_NETINET_IN_H 1 */
67
75
 
68
 
/* Define if you have the <process.h> header file.  */
 
76
/* Define if you have the <process.h> header file. */
69
77
#ifndef __SALFORDC__
70
78
#define HAVE_PROCESS_H 1
71
79
#endif
73
81
/* Define if you have the <signal.h> header file. */
74
82
#define HAVE_SIGNAL_H 1
75
83
 
76
 
/* Define if you have the <sgtty.h> header file.  */
 
84
/* Define if you have the <sgtty.h> header file. */
77
85
/* #define HAVE_SGTTY_H 1 */
78
86
 
79
 
/* Define if you have the <ssl.h> header file.  */
 
87
/* Define if you have the <ssl.h> header file. */
80
88
/* #define HAVE_SSL_H 1 */
81
89
 
82
 
/* Define if you have the <stdlib.h> header file.  */
 
90
/* Define if you have the <stdlib.h> header file. */
83
91
#define HAVE_STDLIB_H 1
84
92
 
85
 
/* Define if you have the <sys/param.h> header file.  */
 
93
/* Define if you have the <sys/param.h> header file. */
86
94
/* #define HAVE_SYS_PARAM_H 1 */
87
95
 
88
 
/* Define if you have the <sys/select.h> header file.  */
 
96
/* Define if you have the <sys/select.h> header file. */
89
97
/* #define HAVE_SYS_SELECT_H 1 */
90
98
 
91
 
/* Define if you have the <sys/socket.h> header file.  */
 
99
/* Define if you have the <sys/socket.h> header file. */
92
100
/* #define HAVE_SYS_SOCKET_H 1 */
93
101
 
94
 
/* Define if you have the <sys/sockio.h> header file.  */
 
102
/* Define if you have the <sys/sockio.h> header file. */
95
103
/* #define HAVE_SYS_SOCKIO_H 1 */
96
104
 
97
 
/* Define if you have the <sys/stat.h> header file.  */
 
105
/* Define if you have the <sys/stat.h> header file. */
98
106
#define HAVE_SYS_STAT_H 1
99
107
 
100
 
/* Define if you have the <sys/time.h> header file */
 
108
/* Define if you have the <sys/time.h> header file. */
101
109
/* #define HAVE_SYS_TIME_H 1 */
102
110
 
103
 
/* Define if you have the <sys/types.h> header file.  */
 
111
/* Define if you have the <sys/types.h> header file. */
104
112
#define HAVE_SYS_TYPES_H 1
105
113
 
106
 
/* Define if you have the <sys/utime.h> header file.  */
 
114
/* Define if you have the <sys/utime.h> header file. */
107
115
#ifndef __BORLANDC__
108
116
#define HAVE_SYS_UTIME_H 1
109
117
#endif
110
118
 
111
 
/* Define if you have the <termio.h> header file.  */
 
119
/* Define if you have the <termio.h> header file. */
112
120
/* #define HAVE_TERMIO_H 1 */
113
121
 
114
 
/* Define if you have the <termios.h> header file.  */
 
122
/* Define if you have the <termios.h> header file. */
115
123
/* #define HAVE_TERMIOS_H 1 */
116
124
 
117
 
/* Define if you have the <time.h> header file.  */
 
125
/* Define if you have the <time.h> header file. */
118
126
#define HAVE_TIME_H 1
119
127
 
120
 
/* Define if you have the <unistd.h> header file.  */
 
128
/* Define if you have the <unistd.h> header file. */
121
129
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
122
130
    defined(__POCC__)
123
131
#define HAVE_UNISTD_H 1
124
132
#endif
125
133
 
126
 
/* Define if you have the <windows.h> header file.  */
 
134
/* Define if you have the <windows.h> header file. */
127
135
#define HAVE_WINDOWS_H 1
128
136
 
129
 
/* Define if you have the <winsock.h> header file.  */
 
137
/* Define if you have the <winsock.h> header file. */
130
138
#define HAVE_WINSOCK_H 1
131
139
 
132
 
/* Define if you have the <winsock2.h> header file.  */
 
140
/* Define if you have the <winsock2.h> header file. */
133
141
#ifndef __SALFORDC__
134
142
#define HAVE_WINSOCK2_H 1
135
143
#endif
136
144
 
137
 
/* Define if you have the <ws2tcpip.h> header file.  */
 
145
/* Define if you have the <ws2tcpip.h> header file. */
138
146
#ifndef __SALFORDC__
139
147
#define HAVE_WS2TCPIP_H 1
140
148
#endif
146
154
/* Define if sig_atomic_t is an available typedef. */
147
155
#define HAVE_SIG_ATOMIC_T 1
148
156
 
149
 
/* Define if you have the ANSI C header files.  */
 
157
/* Define if you have the ANSI C header files. */
150
158
#define STDC_HEADERS 1
151
159
 
152
 
/* 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>. */
153
161
/* #define TIME_WITH_SYS_TIME 1 */
154
162
 
155
163
/* ---------------------------------------------------------------- */
156
164
/*                             FUNCTIONS                            */
157
165
/* ---------------------------------------------------------------- */
158
166
 
159
 
/* Define if you have the closesocket function.  */
 
167
/* Define if you have the closesocket function. */
160
168
#define HAVE_CLOSESOCKET 1
161
169
 
162
 
/* Define if you don't have vprintf but do have _doprnt.  */
 
170
/* Define if you don't have vprintf but do have _doprnt. */
163
171
/* #define HAVE_DOPRNT 1 */
164
172
 
165
 
/* Define if you have the gethostbyaddr function.  */
 
173
/* Define if you have the ftruncate function. */
 
174
#define HAVE_FTRUNCATE 1
 
175
 
 
176
/* Define if you have the gethostbyaddr function. */
166
177
#define HAVE_GETHOSTBYADDR 1
167
178
 
168
 
/* Define if you have the gethostname function.  */
 
179
/* Define if you have the gethostname function. */
169
180
#define HAVE_GETHOSTNAME 1
170
181
 
171
 
/* Define if you have the getpass function.  */
 
182
/* Define if you have the getpass function. */
172
183
/* #define HAVE_GETPASS 1 */
173
184
 
174
 
/* Define if you have the getservbyname function.  */
 
185
/* Define if you have the getservbyname function. */
175
186
#define HAVE_GETSERVBYNAME 1
176
187
 
177
 
/* Define if you have the getprotobyname function.  */
 
188
/* Define if you have the getprotobyname function. */
178
189
#define HAVE_GETPROTOBYNAME
179
190
 
180
 
/* Define if you have the gettimeofday function.  */
 
191
/* Define if you have the gettimeofday function. */
181
192
/* #define HAVE_GETTIMEOFDAY 1 */
182
193
 
183
 
/* Define if you have the inet_addr function.  */
 
194
/* Define if you have the inet_addr function. */
184
195
#define HAVE_INET_ADDR 1
185
196
 
186
197
/* Define if you have the ioctlsocket function. */
189
200
/* Define if you have a working ioctlsocket FIONBIO function. */
190
201
#define HAVE_IOCTLSOCKET_FIONBIO 1
191
202
 
192
 
/* Define if you have the perror function.  */
 
203
/* Define if you have the perror function. */
193
204
#define HAVE_PERROR 1
194
205
 
195
 
/* Define if you have the RAND_screen function when using SSL  */
 
206
/* Define if you have the RAND_screen function when using SSL. */
196
207
#define HAVE_RAND_SCREEN 1
197
208
 
198
209
/* Define if you have the `RAND_status' function when using SSL. */
199
210
#define HAVE_RAND_STATUS 1
200
211
 
201
 
/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function.
 
212
/* Define if you have the `CRYPTO_cleanup_all_ex_data' function.
202
213
   This is present in OpenSSL versions after 0.9.6b */
203
214
#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
204
215
 
205
 
/* Define if you have the select function.  */
 
216
/* Define if you have the select function. */
206
217
#define HAVE_SELECT 1
207
218
 
208
 
/* Define if you have the setvbuf function.  */
 
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. */
209
226
#define HAVE_SETVBUF 1
210
227
 
211
 
/* Define if you have the socket function.  */
 
228
/* Define if you have the socket function. */
212
229
#define HAVE_SOCKET 1
213
230
 
214
 
/* Define if you have the strcasecmp function.  */
 
231
/* Define if you have the strcasecmp function. */
215
232
/* #define HAVE_STRCASECMP 1 */
216
233
 
217
 
/* Define if you have the strdup function.  */
 
234
/* Define if you have the strdup function. */
218
235
#define HAVE_STRDUP 1
219
236
 
220
 
/* Define if you have the strftime function.  */
 
237
/* Define if you have the strftime function. */
221
238
#define HAVE_STRFTIME 1
222
239
 
223
240
/* Define if you have the stricmp function. */
229
246
/* Define if you have the strnicmp function. */
230
247
#define HAVE_STRNICMP 1
231
248
 
232
 
/* Define if you have the strstr function.  */
 
249
/* Define if you have the strstr function. */
233
250
#define HAVE_STRSTR 1
234
251
 
235
 
/* Define if you have the strtoll function.  */
 
252
/* Define if you have the strtoll function. */
236
253
#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__)
237
254
#define HAVE_STRTOLL 1
238
255
#endif
239
256
 
240
 
/* Define if you have the tcgetattr function.  */
 
257
/* Define if you have the tcgetattr function. */
241
258
/* #define HAVE_TCGETATTR 1 */
242
259
 
243
 
/* Define if you have the tcsetattr function.  */
 
260
/* Define if you have the tcsetattr function. */
244
261
/* #define HAVE_TCSETATTR 1 */
245
262
 
246
 
/* Define if you have the utime function */
 
263
/* Define if you have the utime function. */
247
264
#ifndef __BORLANDC__
248
265
#define HAVE_UTIME 1
249
266
#endif
330
347
/*                       TYPEDEF REPLACEMENTS                       */
331
348
/* ---------------------------------------------------------------- */
332
349
 
333
 
/* Define this if in_addr_t is not an available 'typedefed' type */
 
350
/* Define if in_addr_t is not an available 'typedefed' type. */
334
351
#define in_addr_t unsigned long
335
352
 
336
 
/* Define as the return type of signal handlers (int or void).  */
 
353
/* Define to the return type of signal handlers (int or void). */
337
354
#define RETSIGTYPE void
338
355
 
339
 
/* Define ssize_t if it is not an available 'typedefed' type */
 
356
/* Define if ssize_t is not an available 'typedefed' type. */
340
357
#ifndef _SSIZE_T_DEFINED
341
358
#  if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
342
359
      defined(__POCC__) || \
354
371
/*                            TYPE SIZES                            */
355
372
/* ---------------------------------------------------------------- */
356
373
 
357
 
/* The size of `int', as computed by sizeof. */
 
374
/* Define to the size of `int', as computed by sizeof. */
358
375
#define SIZEOF_INT 4
359
376
 
360
 
/* The size of `long double', as computed by sizeof. */
 
377
/* Define to the size of `long double', as computed by sizeof. */
361
378
#define SIZEOF_LONG_DOUBLE 16
362
379
 
363
 
/* The size of `long long', as computed by sizeof. */
 
380
/* Define to the size of `long long', as computed by sizeof. */
364
381
/* #define SIZEOF_LONG_LONG 8 */
365
382
 
366
 
/* The size of `short', as computed by sizeof. */
 
383
/* Define to the size of `short', as computed by sizeof. */
367
384
#define SIZEOF_SHORT 2
368
385
 
369
 
/* The size of `size_t', as computed by sizeof. */
 
386
/* Define to the size of `size_t', as computed by sizeof. */
370
387
#if defined(_WIN64)
371
388
#  define SIZEOF_SIZE_T 8
372
389
#else
377
394
/*                          STRUCT RELATED                          */
378
395
/* ---------------------------------------------------------------- */
379
396
 
380
 
/* Define this if you have struct sockaddr_storage */
 
397
/* Define if you have struct sockaddr_storage. */
381
398
#if !defined(__SALFORDC__) && !defined(__BORLANDC__)
382
399
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
383
400
#endif
384
401
 
385
 
/* Define this if you have struct timeval */
 
402
/* Define if you have struct timeval. */
386
403
#define HAVE_STRUCT_TIMEVAL 1
387
404
 
 
405
/* Define if struct sockaddr_in6 has the sin6_scope_id member. */
 
406
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
 
407
 
 
408
/* ---------------------------------------------------------------- */
 
409
/*               BSD-style lwIP TCP/IP stack SPECIFIC               */
 
410
/* ---------------------------------------------------------------- */
 
411
 
 
412
/* Define to use BSD-style lwIP TCP/IP stack. */
 
413
/* #define USE_LWIPSOCK 1 */
 
414
 
 
415
#ifdef USE_LWIPSOCK
 
416
#  undef USE_WINSOCK
 
417
#  undef HAVE_WINSOCK_H
 
418
#  undef HAVE_WINSOCK2_H
 
419
#  undef HAVE_WS2TCPIP_H
 
420
#  undef HAVE_ERRNO_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
 
438
#endif
 
439
 
388
440
/* ---------------------------------------------------------------- */
389
441
/*                        Watt-32 tcp/ip SPECIFIC                   */
390
442
/* ---------------------------------------------------------------- */
413
465
/*                        COMPILER SPECIFIC                         */
414
466
/* ---------------------------------------------------------------- */
415
467
 
416
 
/* Undef keyword 'const' if it does not work.  */
417
 
/* #undef const */
 
468
/* Define to nothing if compiler does not support 'const' qualifier. */
 
469
/* #define const */
 
470
 
 
471
/* Define to nothing if compiler does not support 'volatile' qualifier. */
 
472
/* #define volatile */
418
473
 
419
474
/* Windows should not have HAVE_GMTIME_R defined */
420
475
/* #undef HAVE_GMTIME_R */
429
484
#define HAVE_LONGLONG 1
430
485
#endif
431
486
 
432
 
/* Define to avoid VS2005 complaining about portable C functions */
 
487
/* Define to avoid VS2005 complaining about portable C functions. */
433
488
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
434
489
#define _CRT_SECURE_NO_DEPRECATE 1
435
490
#define _CRT_NONSTDC_NO_DEPRECATE 1
436
491
#endif
437
492
 
438
 
/* VS2005 and later dafault size for time_t is 64-bit, unless */
439
 
/* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
 
493
/* VS2005 and later dafault size for time_t is 64-bit, unless
 
494
   _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
440
495
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
441
496
#  ifndef _USE_32BIT_TIME_T
442
497
#    define SIZEOF_TIME_T 8
446
501
#endif
447
502
 
448
503
/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
449
 
   2000 as a supported build target. VS2008 default installations provide an
450
 
   embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
451
 
   valid build target for VS2008. Popular belief is that binaries built using
452
 
   Windows SDK versions 6.X and Windows 2000 as a build target are functional */
 
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. */
453
509
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
454
 
#  define VS2008_MINIMUM_TARGET 0x0500
 
510
#  define VS2008_MIN_TARGET 0x0500
455
511
#endif
456
512
 
457
513
/* When no build target is specified VS2008 default build target is Windows
459
515
   for VS2008 we will target the minimum Officially supported build target,
460
516
   which happens to be Windows XP. */
461
517
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
462
 
#  define VS2008_DEFAULT_TARGET  0x0501
 
518
#  define VS2008_DEF_TARGET  0x0501
463
519
#endif
464
520
 
465
 
/* VS2008 default target settings and minimum build target check */
 
521
/* VS2008 default target settings and minimum build target check. */
466
522
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
467
523
#  ifndef _WIN32_WINNT
468
 
#    define _WIN32_WINNT VS2008_DEFAULT_TARGET
 
524
#    define _WIN32_WINNT VS2008_DEF_TARGET
469
525
#  endif
470
526
#  ifndef WINVER
471
 
#    define WINVER VS2008_DEFAULT_TARGET
 
527
#    define WINVER VS2008_DEF_TARGET
472
528
#  endif
473
 
#  if (_WIN32_WINNT < VS2008_MINIMUM_TARGET) || (WINVER < VS2008_MINIMUM_TARGET)
 
529
#  if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
474
530
#    error VS2008 does not support Windows build targets prior to Windows 2000
475
531
#  endif
476
532
#endif
549
605
/* ---------------------------------------------------------------- */
550
606
 
551
607
/*
552
 
 * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS
 
608
 * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
553
609
 */
554
610
 
555
 
/* Define USE_ARES to enable c-ares asynchronous DNS lookups */
 
611
/* Define to enable c-ares asynchronous DNS lookups. */
556
612
/* #define USE_ARES 1 */
557
613
 
558
 
/* Define USE_THREADS_WIN32 to enable threaded asynchronous DNS lookups */
 
614
/* Define to enable threaded asynchronous DNS lookups. */
559
615
#define USE_THREADS_WIN32 1
560
616
 
561
617
#if defined(USE_ARES) && defined(USE_THREADS_WIN32)
608
664
/* Name of package */
609
665
#define PACKAGE "curl"
610
666
 
 
667
/* If you want to build curl with the built-in manual */
 
668
#define USE_MANUAL 1
 
669
 
611
670
#if defined(__POCC__) || (USE_IPV6)
612
671
#  define ENABLE_IPV6 1
613
672
#endif
614
673
 
615
 
#endif /* __LIB_CONFIG_WIN32_H */
 
674
#endif /* HEADER_CURL_CONFIG_WIN32_H */