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

« back to all changes in this revision

Viewing changes to src/config-win32.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
/*                             FUNCTIONS                            */
73
73
/* ---------------------------------------------------------------- */
74
74
 
75
 
/* Define if you have the setmode function. */
76
 
#define HAVE_SETMODE 1
77
 
 
78
75
/* Define if you have the ftruncate function.  */
79
76
#define HAVE_FTRUNCATE 1
80
77
 
 
78
/* Define if you have the ioctlsocket function. */
 
79
#define HAVE_IOCTLSOCKET 1
 
80
 
 
81
/* Define if you have a working ioctlsocket FIONBIO function. */
 
82
#define HAVE_IOCTLSOCKET_FIONBIO 1
 
83
 
81
84
/* Define if you have the setlocale function.  */
82
85
#define HAVE_SETLOCALE 1
83
86
 
 
87
/* Define if you have the setmode function. */
 
88
#define HAVE_SETMODE 1
 
89
 
 
90
/* Define if you have the strcasecmp function. */
 
91
/* #define HAVE_STRCASECMP 1 */
 
92
 
84
93
/* Define if you have the strdup function.  */
85
94
#define HAVE_STRDUP 1
86
95
 
87
96
/* Define if you have the stricmp function.  */
88
97
#define HAVE_STRICMP 1
89
98
 
 
99
/* Define if you have the strncasecmp function. */
 
100
/* #define HAVE_STRNCASECMP 1 */
 
101
 
 
102
/* Define if you have the strnicmp function. */
 
103
#define HAVE_STRNICMP 1
 
104
 
90
105
/* Define if you have the utime function */
91
106
#ifndef __BORLANDC__
92
107
#define HAVE_UTIME 1
110
125
/* Define to the function return type for recv. */
111
126
#define RECV_TYPE_RETV int
112
127
 
 
128
/* Define if you have the recvfrom function. */
 
129
#define HAVE_RECVFROM 1
 
130
 
 
131
/* Define to the type of arg 1 for recvfrom. */
 
132
#define RECVFROM_TYPE_ARG1 SOCKET
 
133
 
 
134
/* Define to the type pointed by arg 2 for recvfrom. */
 
135
#define RECVFROM_TYPE_ARG2 char
 
136
 
 
137
/* Define to the type of arg 3 for recvfrom. */
 
138
#define RECVFROM_TYPE_ARG3 int
 
139
 
 
140
/* Define to the type of arg 4 for recvfrom. */
 
141
#define RECVFROM_TYPE_ARG4 int
 
142
 
 
143
/* Define to the type pointed by arg 5 for recvfrom. */
 
144
#define RECVFROM_TYPE_ARG5 struct sockaddr
 
145
 
 
146
/* Define to the type pointed by arg 6 for recvfrom. */
 
147
#define RECVFROM_TYPE_ARG6 int
 
148
 
 
149
/* Define to the function return type for recvfrom. */
 
150
#define RECVFROM_TYPE_RETV int
 
151
 
113
152
/* Define if you have the send function. */
114
153
#define HAVE_SEND 1
115
154
 
161
200
/* Define this if you have struct timeval */
162
201
#define HAVE_STRUCT_TIMEVAL 1
163
202
 
 
203
/* Define this if struct sockaddr_in6 has the sin6_scope_id member */
 
204
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
 
205
 
 
206
/* ---------------------------------------------------------------- */
 
207
/*                        Watt-32 tcp/ip SPECIFIC                   */
 
208
/* ---------------------------------------------------------------- */
 
209
 
 
210
#ifdef USE_WATT32
 
211
  #include <tcp.h>
 
212
  #undef byte
 
213
  #undef word
 
214
  #undef USE_WINSOCK
 
215
  #undef HAVE_WINSOCK_H
 
216
  #undef HAVE_WINSOCK2_H
 
217
  #undef HAVE_WS2TCPIP_H
 
218
  #define HAVE_GETADDRINFO
 
219
  #define HAVE_GETNAMEINFO
 
220
  #define HAVE_SYS_IOCTL_H
 
221
  #define HAVE_SYS_SOCKET_H
 
222
  #define HAVE_NETINET_IN_H
 
223
  #define HAVE_NETDB_H
 
224
  #define HAVE_ARPA_INET_H
 
225
  #define HAVE_FREEADDRINFO
 
226
  #define SOCKET int
 
227
#endif
 
228
 
 
229
 
164
230
/* ---------------------------------------------------------------- */
165
231
/*                        COMPILER SPECIFIC                         */
166
232
/* ---------------------------------------------------------------- */
176
242
#define HAVE_VARIADIC_MACROS_C99 1
177
243
#endif
178
244
 
179
 
/* Define if the compiler supports LONGLONG. */
 
245
/* Define if the compiler supports the 'long long' data type. */
180
246
#if defined(__MINGW32__) || defined(__WATCOMC__)
181
247
#define HAVE_LONGLONG 1
182
248
#endif
197
263
#  endif
198
264
#endif
199
265
 
200
 
/* VS2008 does not support Windows build targets prior to WinXP, */
201
 
/* so, if no build target has been defined we will target WinXP. */
 
266
/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
 
267
   2000 as a supported build target. VS2008 default installations provide an
 
268
   embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
 
269
   valid build target for VS2008. Popular belief is that binaries built using
 
270
   Windows SDK versions 6.X and Windows 2000 as a build target are functional */
 
271
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
 
272
#  define VS2008_MINIMUM_TARGET 0x0500
 
273
#endif
 
274
 
 
275
/* When no build target is specified VS2008 default build target is Windows
 
276
   Vista, which leaves out even Winsows XP. If no build target has been given
 
277
   for VS2008 we will target the minimum Officially supported build target,
 
278
   which happens to be Windows XP. */
 
279
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
 
280
#  define VS2008_DEFAULT_TARGET  0x0501
 
281
#endif
 
282
 
 
283
/* VS2008 default target settings and minimum build target check */
202
284
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
203
285
#  ifndef _WIN32_WINNT
204
 
#    define _WIN32_WINNT 0x0501
 
286
#    define _WIN32_WINNT VS2008_DEFAULT_TARGET
205
287
#  endif
206
288
#  ifndef WINVER
207
 
#    define WINVER 0x0501
208
 
#  endif
209
 
#  if (_WIN32_WINNT < 0x0501) || (WINVER < 0x0501)
210
 
#    error VS2008 does not support Windows build targets prior to WinXP
211
 
#  endif
 
289
#    define WINVER VS2008_DEFAULT_TARGET
 
290
#  endif
 
291
#  if (_WIN32_WINNT < VS2008_MINIMUM_TARGET) || (WINVER < VS2008_MINIMUM_TARGET)
 
292
#    error VS2008 does not support Windows build targets prior to Windows 2000
 
293
#  endif
 
294
#endif
 
295
 
 
296
/* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is
 
297
   quite convoluted, compiler dependant and in some cases even build target
 
298
   dependant. */
 
299
#if defined(HAVE_WS2TCPIP_H)
 
300
#  if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
 
301
#    define HAVE_FREEADDRINFO 1
 
302
#    define HAVE_GETADDRINFO  1
 
303
#    define HAVE_GETNAMEINFO  1
 
304
#  elif defined(_MSC_VER) && (_MSC_VER >= 1200)
 
305
#    define HAVE_FREEADDRINFO 1
 
306
#    define HAVE_GETADDRINFO  1
 
307
#    define HAVE_GETNAMEINFO  1
 
308
#  endif
 
309
#endif
 
310
 
 
311
/* ---------------------------------------------------------------- */
 
312
/*                        LARGE FILE SUPPORT                        */
 
313
/* ---------------------------------------------------------------- */
 
314
 
 
315
#if defined(_MSC_VER) && !defined(_WIN32_WCE)
 
316
#  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
 
317
#    define USE_WIN32_LARGE_FILES
 
318
#  else
 
319
#    define USE_WIN32_SMALL_FILES
 
320
#  endif
 
321
#endif
 
322
 
 
323
#if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
 
324
#  define USE_WIN32_LARGE_FILES
 
325
#endif
 
326
 
 
327
#if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
 
328
#  define USE_WIN32_SMALL_FILES
212
329
#endif
213
330
 
214
331
/* ---------------------------------------------------------------- */