~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to lib/config-win32.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-8xjr3o2sgce5s4bg
Tags: 7.19.4-1
* New upstream release
* Fix "newer bdb version" <explain what you changed and why> 
  (Closes: #517277)
* resolve libtool version confusion, thanks to 
  Stefanos Harhalakis <v13@v13.gr>
* add new dependency on libgcrypt11-dev due to newly arising binary symbols

Show diffs side-by-side

added added

removed removed

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