~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to lib/config-win32.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-05-24 21:12:19 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20090524211219-7jgcwuhl04ixuqsm
Tags: upstream-7.19.5
ImportĀ upstreamĀ versionĀ 7.19.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
/* Define if you have the <io.h> header file.  */
31
31
#define HAVE_IO_H 1
32
32
 
 
33
/* Define if you have the <limits.h> header file.  */
 
34
#define HAVE_LIMITS_H 1
 
35
 
33
36
/* Define if you need the malloc.h header file even with stdlib.h  */
34
37
#ifndef __SALFORDC__
35
38
#define NEED_MALLOC_H 1
157
160
/* Define if you have the inet_addr function.  */
158
161
#define HAVE_INET_ADDR 1
159
162
 
160
 
/* Define if you have the inet_ntoa function.  */
161
 
#define HAVE_INET_NTOA 1
162
 
 
163
 
/* Define if you have the ioctlsocket function.  */
 
163
/* Define if you have the ioctlsocket function. */
164
164
#define HAVE_IOCTLSOCKET 1
165
165
 
 
166
/* Define if you have a working ioctlsocket FIONBIO function. */
 
167
#define HAVE_IOCTLSOCKET_FIONBIO 1
 
168
 
166
169
/* Define if you have the perror function.  */
167
170
#define HAVE_PERROR 1
168
171
 
172
175
/* Define if you have the `RAND_status' function when using SSL. */
173
176
#define HAVE_RAND_STATUS 1
174
177
 
 
178
/* Define to 1 if you have the `CRYPTO_cleanup_all_ex_data' function.
 
179
   This is present in OpenSSL versions after 0.9.6b */
 
180
#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
 
181
 
175
182
/* Define if you have the select function.  */
176
183
#define HAVE_SELECT 1
177
184
 
184
191
/* Define if you have the strcasecmp function.  */
185
192
/* #define HAVE_STRCASECMP 1 */
186
193
 
187
 
/* Define if you have the stricmp function.  */
188
 
#define HAVE_STRICMP 1
189
 
 
190
194
/* Define if you have the strdup function.  */
191
195
#define HAVE_STRDUP 1
192
196
 
193
197
/* Define if you have the strftime function.  */
194
198
#define HAVE_STRFTIME 1
195
199
 
 
200
/* Define if you have the stricmp function. */
 
201
#define HAVE_STRICMP 1
 
202
 
 
203
/* Define if you have the strncasecmp function. */
 
204
/* #define HAVE_STRNCASECMP 1 */
 
205
 
 
206
/* Define if you have the strnicmp function. */
 
207
#define HAVE_STRNICMP 1
 
208
 
196
209
/* Define if you have the strstr function.  */
197
210
#define HAVE_STRSTR 1
198
211
 
212
225
#define HAVE_UTIME 1
213
226
#endif
214
227
 
215
 
/* Define if you have the getnameinfo function. */
216
 
#define HAVE_GETNAMEINFO 1
217
 
 
218
228
/* Define to the type qualifier of arg 1 for getnameinfo. */
219
229
#define GETNAMEINFO_QUAL_ARG1 const
220
230
 
248
258
/* Define to the function return type for recv. */
249
259
#define RECV_TYPE_RETV int
250
260
 
 
261
/* Define if you have the recvfrom function. */
 
262
#define HAVE_RECVFROM 1
 
263
 
 
264
/* Define to the type of arg 1 for recvfrom. */
 
265
#define RECVFROM_TYPE_ARG1 SOCKET
 
266
 
 
267
/* Define to the type pointed by arg 2 for recvfrom. */
 
268
#define RECVFROM_TYPE_ARG2 char
 
269
 
 
270
/* Define to the type of arg 3 for recvfrom. */
 
271
#define RECVFROM_TYPE_ARG3 int
 
272
 
 
273
/* Define to the type of arg 4 for recvfrom. */
 
274
#define RECVFROM_TYPE_ARG4 int
 
275
 
 
276
/* Define to the type pointed by arg 5 for recvfrom. */
 
277
#define RECVFROM_TYPE_ARG5 struct sockaddr
 
278
 
 
279
/* Define to the type pointed by arg 6 for recvfrom. */
 
280
#define RECVFROM_TYPE_ARG6 int
 
281
 
 
282
/* Define to the function return type for recvfrom. */
 
283
#define RECVFROM_TYPE_RETV int
 
284
 
251
285
/* Define if you have the send function. */
252
286
#define HAVE_SEND 1
253
287
 
300
334
/* The number of bytes in a long long.  */
301
335
/* #define SIZEOF_LONG_LONG 8 */
302
336
 
303
 
/* Undef SIZEOF_CURL_OFF_T if already defined. */
304
 
#ifdef SIZEOF_CURL_OFF_T
305
 
#undef SIZEOF_CURL_OFF_T
306
 
#endif
307
 
 
308
 
/* Define SIZEOF_CURL_OFF_T as computed by sizeof(curl_off_t) */
309
 
/* Borland/PellesC/SalfordC lacks _lseeki64(), so we don't support
310
 
 * >2GB files.
311
 
 */
312
 
#if defined(__BORLANDC__) || defined(__POCC__) || defined(__SALFORDC__)
313
 
#define SIZEOF_CURL_OFF_T 4
314
 
#else
315
 
#define SIZEOF_CURL_OFF_T 8
316
 
#endif
317
 
 
318
337
/* ---------------------------------------------------------------- */
319
338
/*                          STRUCT RELATED                          */
320
339
/* ---------------------------------------------------------------- */
328
347
#define HAVE_STRUCT_TIMEVAL 1
329
348
 
330
349
/* ---------------------------------------------------------------- */
 
350
/*                        Watt-32 tcp/ip SPECIFIC                   */
 
351
/* ---------------------------------------------------------------- */
 
352
 
 
353
#ifdef USE_WATT32
 
354
  #include <tcp.h>
 
355
  #undef byte
 
356
  #undef word
 
357
  #undef USE_WINSOCK
 
358
  #undef HAVE_WINSOCK_H
 
359
  #undef HAVE_WINSOCK2_H
 
360
  #undef HAVE_WS2TCPIP_H
 
361
  #define HAVE_GETADDRINFO
 
362
  #define HAVE_GETNAMEINFO
 
363
  #define HAVE_SYS_IOCTL_H
 
364
  #define HAVE_SYS_SOCKET_H
 
365
  #define HAVE_NETINET_IN_H
 
366
  #define HAVE_NETDB_H
 
367
  #define HAVE_ARPA_INET_H
 
368
  #define HAVE_FREEADDRINFO
 
369
  #define SOCKET int
 
370
#endif
 
371
 
 
372
 
 
373
/* ---------------------------------------------------------------- */
331
374
/*                        COMPILER SPECIFIC                         */
332
375
/* ---------------------------------------------------------------- */
333
376
 
342
385
#define HAVE_VARIADIC_MACROS_C99 1
343
386
#endif
344
387
 
345
 
/* Define if the compiler supports LONGLONG. */
 
388
/* Define if the compiler supports the 'long long' data type. */
346
389
#if defined(__MINGW32__) || defined(__WATCOMC__)
347
390
#define HAVE_LONGLONG 1
348
391
#endif
363
406
#  endif
364
407
#endif
365
408
 
366
 
/* VS2008 does not support Windows build targets prior to WinXP, */
367
 
/* so, if no build target has been defined we will target WinXP. */
 
409
/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
 
410
   2000 as a supported build target. VS2008 default installations provide an
 
411
   embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
 
412
   valid build target for VS2008. Popular belief is that binaries built using
 
413
   Windows SDK versions 6.X and Windows 2000 as a build target are functional */
 
414
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
 
415
#  define VS2008_MINIMUM_TARGET 0x0500
 
416
#endif
 
417
 
 
418
/* When no build target is specified VS2008 default build target is Windows
 
419
   Vista, which leaves out even Winsows XP. If no build target has been given
 
420
   for VS2008 we will target the minimum Officially supported build target,
 
421
   which happens to be Windows XP. */
 
422
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
 
423
#  define VS2008_DEFAULT_TARGET  0x0501
 
424
#endif
 
425
 
 
426
/* VS2008 default target settings and minimum build target check */
368
427
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
369
428
#  ifndef _WIN32_WINNT
370
 
#    define _WIN32_WINNT 0x0501
 
429
#    define _WIN32_WINNT VS2008_DEFAULT_TARGET
371
430
#  endif
372
431
#  ifndef WINVER
373
 
#    define WINVER 0x0501
374
 
#  endif
375
 
#  if (_WIN32_WINNT < 0x0501) || (WINVER < 0x0501)
376
 
#    error VS2008 does not support Windows build targets prior to WinXP
377
 
#  endif
 
432
#    define WINVER VS2008_DEFAULT_TARGET
 
433
#  endif
 
434
#  if (_WIN32_WINNT < VS2008_MINIMUM_TARGET) || (WINVER < VS2008_MINIMUM_TARGET)
 
435
#    error VS2008 does not support Windows build targets prior to Windows 2000
 
436
#  endif
 
437
#endif
 
438
 
 
439
/* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is
 
440
   quite convoluted, compiler dependant and in some cases even build target
 
441
   dependant. */
 
442
#if defined(HAVE_WS2TCPIP_H)
 
443
#  if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
 
444
#    define HAVE_FREEADDRINFO 1
 
445
#    define HAVE_GETADDRINFO  1
 
446
#    define HAVE_GETNAMEINFO  1
 
447
#  elif defined(_MSC_VER) && (_MSC_VER >= 1200)
 
448
#    define HAVE_FREEADDRINFO 1
 
449
#    define HAVE_GETADDRINFO  1
 
450
#    define HAVE_GETNAMEINFO  1
 
451
#  endif
 
452
#endif
 
453
 
 
454
/* ---------------------------------------------------------------- */
 
455
/*                        LARGE FILE SUPPORT                        */
 
456
/* ---------------------------------------------------------------- */
 
457
 
 
458
#if defined(_MSC_VER) && !defined(_WIN32_WCE)
 
459
#  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
 
460
#    define USE_WIN32_LARGE_FILES
 
461
#  else
 
462
#    define USE_WIN32_SMALL_FILES
 
463
#  endif
 
464
#endif
 
465
 
 
466
#if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
 
467
#  define USE_WIN32_LARGE_FILES
 
468
#endif
 
469
 
 
470
#if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
 
471
#  define USE_WIN32_SMALL_FILES
378
472
#endif
379
473
 
380
474
/* ---------------------------------------------------------------- */