1 | #ifndef HEADER_CURL_CONFIG_WIN32_H
|
---|
2 | #define HEADER_CURL_CONFIG_WIN32_H
|
---|
3 | /***************************************************************************
|
---|
4 | * _ _ ____ _
|
---|
5 | * Project ___| | | | _ \| |
|
---|
6 | * / __| | | | |_) | |
|
---|
7 | * | (__| |_| | _ <| |___
|
---|
8 | * \___|\___/|_| \_\_____|
|
---|
9 | *
|
---|
10 | * Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
|
---|
11 | *
|
---|
12 | * This software is licensed as described in the file COPYING, which
|
---|
13 | * you should have received as part of this distribution. The terms
|
---|
14 | * are also available at https://curl.se/docs/copyright.html.
|
---|
15 | *
|
---|
16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
---|
17 | * copies of the Software, and permit persons to whom the Software is
|
---|
18 | * furnished to do so, under the terms of the COPYING file.
|
---|
19 | *
|
---|
20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
---|
21 | * KIND, either express or implied.
|
---|
22 | *
|
---|
23 | * SPDX-License-Identifier: curl
|
---|
24 | *
|
---|
25 | ***************************************************************************/
|
---|
26 |
|
---|
27 | /* ================================================================ */
|
---|
28 | /* Hand crafted config file for Windows */
|
---|
29 | /* ================================================================ */
|
---|
30 |
|
---|
31 | /* ---------------------------------------------------------------- */
|
---|
32 | /* HEADER FILES */
|
---|
33 | /* ---------------------------------------------------------------- */
|
---|
34 |
|
---|
35 | /* Define if you have the <arpa/inet.h> header file. */
|
---|
36 | /* #define HAVE_ARPA_INET_H 1 */
|
---|
37 |
|
---|
38 | /* Define if you have the <fcntl.h> header file. */
|
---|
39 | #define HAVE_FCNTL_H 1
|
---|
40 |
|
---|
41 | /* Define to 1 if you have the <inttypes.h> header file. */
|
---|
42 | #if defined(_MSC_VER) && (_MSC_VER >= 1800)
|
---|
43 | #define HAVE_INTTYPES_H 1
|
---|
44 | #endif
|
---|
45 |
|
---|
46 | /* Define if you have the <io.h> header file. */
|
---|
47 | #define HAVE_IO_H 1
|
---|
48 |
|
---|
49 | /* Define if you have the <locale.h> header file. */
|
---|
50 | #define HAVE_LOCALE_H 1
|
---|
51 |
|
---|
52 | /* Define if you need <malloc.h> header even with <stdlib.h> header file. */
|
---|
53 | #if !defined(__SALFORDC__) && !defined(__POCC__)
|
---|
54 | #define NEED_MALLOC_H 1
|
---|
55 | #endif
|
---|
56 |
|
---|
57 | /* Define if you have the <netdb.h> header file. */
|
---|
58 | /* #define HAVE_NETDB_H 1 */
|
---|
59 |
|
---|
60 | /* Define if you have the <netinet/in.h> header file. */
|
---|
61 | /* #define HAVE_NETINET_IN_H 1 */
|
---|
62 |
|
---|
63 | /* Define if you have the <signal.h> header file. */
|
---|
64 | #define HAVE_SIGNAL_H 1
|
---|
65 |
|
---|
66 | /* Define if you have the <ssl.h> header file. */
|
---|
67 | /* #define HAVE_SSL_H 1 */
|
---|
68 |
|
---|
69 | /* Define to 1 if you have the <stdbool.h> header file. */
|
---|
70 | #if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || \
|
---|
71 | defined(__MINGW64_VERSION_MAJOR)
|
---|
72 | #define HAVE_STDBOOL_H 1
|
---|
73 | #endif
|
---|
74 |
|
---|
75 | /* Define if you have the <stdlib.h> header file. */
|
---|
76 | #define HAVE_STDLIB_H 1
|
---|
77 |
|
---|
78 | /* Define if you have the <sys/param.h> header file. */
|
---|
79 | /* #define HAVE_SYS_PARAM_H 1 */
|
---|
80 |
|
---|
81 | /* Define if you have the <sys/select.h> header file. */
|
---|
82 | /* #define HAVE_SYS_SELECT_H 1 */
|
---|
83 |
|
---|
84 | /* Define if you have the <sys/socket.h> header file. */
|
---|
85 | /* #define HAVE_SYS_SOCKET_H 1 */
|
---|
86 |
|
---|
87 | /* Define if you have the <sys/sockio.h> header file. */
|
---|
88 | /* #define HAVE_SYS_SOCKIO_H 1 */
|
---|
89 |
|
---|
90 | /* Define if you have the <sys/stat.h> header file. */
|
---|
91 | #define HAVE_SYS_STAT_H 1
|
---|
92 |
|
---|
93 | /* Define if you have the <sys/time.h> header file. */
|
---|
94 | /* #define HAVE_SYS_TIME_H 1 */
|
---|
95 |
|
---|
96 | /* Define if you have the <sys/types.h> header file. */
|
---|
97 | #define HAVE_SYS_TYPES_H 1
|
---|
98 |
|
---|
99 | /* Define if you have the <sys/utime.h> header file. */
|
---|
100 | #ifndef __BORLANDC__
|
---|
101 | #define HAVE_SYS_UTIME_H 1
|
---|
102 | #endif
|
---|
103 |
|
---|
104 | /* Define if you have the <termio.h> header file. */
|
---|
105 | /* #define HAVE_TERMIO_H 1 */
|
---|
106 |
|
---|
107 | /* Define if you have the <termios.h> header file. */
|
---|
108 | /* #define HAVE_TERMIOS_H 1 */
|
---|
109 |
|
---|
110 | /* Define if you have the <time.h> header file. */
|
---|
111 | #define HAVE_TIME_H 1
|
---|
112 |
|
---|
113 | /* Define if you have the <unistd.h> header file. */
|
---|
114 | #if defined(__MINGW32__) || defined(__LCC__) || defined(__POCC__)
|
---|
115 | #define HAVE_UNISTD_H 1
|
---|
116 | #endif
|
---|
117 |
|
---|
118 | /* Define if you have the <windows.h> header file. */
|
---|
119 | #define HAVE_WINDOWS_H 1
|
---|
120 |
|
---|
121 | /* Define if you have the <winsock2.h> header file. */
|
---|
122 | #ifndef __SALFORDC__
|
---|
123 | #define HAVE_WINSOCK2_H 1
|
---|
124 | #endif
|
---|
125 |
|
---|
126 | /* Define if you have the <ws2tcpip.h> header file. */
|
---|
127 | #ifndef __SALFORDC__
|
---|
128 | #define HAVE_WS2TCPIP_H 1
|
---|
129 | #endif
|
---|
130 |
|
---|
131 | /* Define to 1 if you have the <setjmp.h> header file. */
|
---|
132 | #define HAVE_SETJMP_H 1
|
---|
133 |
|
---|
134 | /* Define to 1 if you have the <string.h> header file. */
|
---|
135 | #define HAVE_STRING_H 1
|
---|
136 |
|
---|
137 | /* Define to 1 if you have the <libgen.h> header file. */
|
---|
138 | #if defined(__MINGW64_VERSION_MAJOR)
|
---|
139 | #define HAVE_LIBGEN_H 1
|
---|
140 | #endif
|
---|
141 |
|
---|
142 | /* ---------------------------------------------------------------- */
|
---|
143 | /* OTHER HEADER INFO */
|
---|
144 | /* ---------------------------------------------------------------- */
|
---|
145 |
|
---|
146 | /* Define if you have the ANSI C header files. */
|
---|
147 | #define STDC_HEADERS 1
|
---|
148 |
|
---|
149 | /* Define if you can safely include both <sys/time.h> and <time.h>. */
|
---|
150 | /* #define TIME_WITH_SYS_TIME 1 */
|
---|
151 |
|
---|
152 | /* Define to 1 if bool is an available type. */
|
---|
153 | #if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || \
|
---|
154 | defined(__MINGW64_VERSION_MAJOR)
|
---|
155 | #define HAVE_BOOL_T 1
|
---|
156 | #endif
|
---|
157 |
|
---|
158 | /* ---------------------------------------------------------------- */
|
---|
159 | /* FUNCTIONS */
|
---|
160 | /* ---------------------------------------------------------------- */
|
---|
161 |
|
---|
162 | /* Define if you have the closesocket function. */
|
---|
163 | #define HAVE_CLOSESOCKET 1
|
---|
164 |
|
---|
165 | /* Define if you have the ftruncate function. */
|
---|
166 | #if defined(__MINGW64_VERSION_MAJOR)
|
---|
167 | #define HAVE_FTRUNCATE 1
|
---|
168 | #endif
|
---|
169 |
|
---|
170 | /* Define to 1 if you have the `getpeername' function. */
|
---|
171 | #define HAVE_GETPEERNAME 1
|
---|
172 |
|
---|
173 | /* Define to 1 if you have the getsockname function. */
|
---|
174 | #define HAVE_GETSOCKNAME 1
|
---|
175 |
|
---|
176 | /* Define if you have the gethostname function. */
|
---|
177 | #define HAVE_GETHOSTNAME 1
|
---|
178 |
|
---|
179 | /* Define if you have the gettimeofday function. */
|
---|
180 | /* #define HAVE_GETTIMEOFDAY 1 */
|
---|
181 |
|
---|
182 | /* Define if you have the ioctlsocket function. */
|
---|
183 | #define HAVE_IOCTLSOCKET 1
|
---|
184 |
|
---|
185 | /* Define if you have a working ioctlsocket FIONBIO function. */
|
---|
186 | #define HAVE_IOCTLSOCKET_FIONBIO 1
|
---|
187 |
|
---|
188 | /* Define if you have the select function. */
|
---|
189 | #define HAVE_SELECT 1
|
---|
190 |
|
---|
191 | /* Define if you have the setlocale function. */
|
---|
192 | #define HAVE_SETLOCALE 1
|
---|
193 |
|
---|
194 | /* Define if you have the setmode function. */
|
---|
195 | #define HAVE_SETMODE 1
|
---|
196 |
|
---|
197 | /* Define if you have the socket function. */
|
---|
198 | #define HAVE_SOCKET 1
|
---|
199 |
|
---|
200 | /* Define if you have the strcasecmp function. */
|
---|
201 | #ifdef __MINGW32__
|
---|
202 | #define HAVE_STRCASECMP 1
|
---|
203 | #endif
|
---|
204 |
|
---|
205 | /* Define if you have the strdup function. */
|
---|
206 | #define HAVE_STRDUP 1
|
---|
207 |
|
---|
208 | /* Define if you have the stricmp function. */
|
---|
209 | #define HAVE_STRICMP 1
|
---|
210 |
|
---|
211 | /* Define if you have the strtoll function. */
|
---|
212 | #if defined(__MINGW32__) || defined(__POCC__) || \
|
---|
213 | (defined(_MSC_VER) && (_MSC_VER >= 1800))
|
---|
214 | #define HAVE_STRTOLL 1
|
---|
215 | #endif
|
---|
216 |
|
---|
217 | /* Define if you have the utime function. */
|
---|
218 | #ifndef __BORLANDC__
|
---|
219 | #define HAVE_UTIME 1
|
---|
220 | #endif
|
---|
221 |
|
---|
222 | /* Define if you have the recv function. */
|
---|
223 | #define HAVE_RECV 1
|
---|
224 |
|
---|
225 | /* Define to the type of arg 1 for recv. */
|
---|
226 | #define RECV_TYPE_ARG1 SOCKET
|
---|
227 |
|
---|
228 | /* Define to the type of arg 2 for recv. */
|
---|
229 | #define RECV_TYPE_ARG2 char *
|
---|
230 |
|
---|
231 | /* Define to the type of arg 3 for recv. */
|
---|
232 | #define RECV_TYPE_ARG3 int
|
---|
233 |
|
---|
234 | /* Define to the type of arg 4 for recv. */
|
---|
235 | #define RECV_TYPE_ARG4 int
|
---|
236 |
|
---|
237 | /* Define to the function return type for recv. */
|
---|
238 | #define RECV_TYPE_RETV int
|
---|
239 |
|
---|
240 | /* Define if you have the send function. */
|
---|
241 | #define HAVE_SEND 1
|
---|
242 |
|
---|
243 | /* Define to the type of arg 1 for send. */
|
---|
244 | #define SEND_TYPE_ARG1 SOCKET
|
---|
245 |
|
---|
246 | /* Define to the type qualifier of arg 2 for send. */
|
---|
247 | #define SEND_QUAL_ARG2 const
|
---|
248 |
|
---|
249 | /* Define to the type of arg 2 for send. */
|
---|
250 | #define SEND_TYPE_ARG2 char *
|
---|
251 |
|
---|
252 | /* Define to the type of arg 3 for send. */
|
---|
253 | #define SEND_TYPE_ARG3 int
|
---|
254 |
|
---|
255 | /* Define to the type of arg 4 for send. */
|
---|
256 | #define SEND_TYPE_ARG4 int
|
---|
257 |
|
---|
258 | /* Define to the function return type for send. */
|
---|
259 | #define SEND_TYPE_RETV int
|
---|
260 |
|
---|
261 | /* Define to 1 if you have the snprintf function. */
|
---|
262 | #if defined(_MSC_VER) && (_MSC_VER >= 1900)
|
---|
263 | #define HAVE_SNPRINTF 1
|
---|
264 | #endif
|
---|
265 |
|
---|
266 | #if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x600 /* Vista */
|
---|
267 | /* Define to 1 if you have a IPv6 capable working inet_ntop function. */
|
---|
268 | #define HAVE_INET_NTOP 1
|
---|
269 | /* Define to 1 if you have a IPv6 capable working inet_pton function. */
|
---|
270 | #define HAVE_INET_PTON 1
|
---|
271 | #endif
|
---|
272 |
|
---|
273 | /* Define to 1 if you have the `basename' function. */
|
---|
274 | #if defined(__MINGW64_VERSION_MAJOR)
|
---|
275 | #define HAVE_BASENAME 1
|
---|
276 | #endif
|
---|
277 |
|
---|
278 | /* Define to 1 if you have the strtok_r function. */
|
---|
279 | #if defined(__MINGW64_VERSION_MAJOR)
|
---|
280 | #define HAVE_STRTOK_R 1
|
---|
281 | #endif
|
---|
282 |
|
---|
283 | /* Define to 1 if you have the signal function. */
|
---|
284 | #define HAVE_SIGNAL 1
|
---|
285 |
|
---|
286 | /* ---------------------------------------------------------------- */
|
---|
287 | /* TYPEDEF REPLACEMENTS */
|
---|
288 | /* ---------------------------------------------------------------- */
|
---|
289 |
|
---|
290 | /* Define if in_addr_t is not an available 'typedefed' type. */
|
---|
291 | #define in_addr_t unsigned long
|
---|
292 |
|
---|
293 | /* Define if ssize_t is not an available 'typedefed' type. */
|
---|
294 | #ifndef _SSIZE_T_DEFINED
|
---|
295 | # if defined(__POCC__) || defined(__MINGW32__)
|
---|
296 | # elif defined(_WIN64)
|
---|
297 | # define _SSIZE_T_DEFINED
|
---|
298 | # define ssize_t __int64
|
---|
299 | # else
|
---|
300 | # define _SSIZE_T_DEFINED
|
---|
301 | # define ssize_t int
|
---|
302 | # endif
|
---|
303 | #endif
|
---|
304 |
|
---|
305 | /* ---------------------------------------------------------------- */
|
---|
306 | /* TYPE SIZES */
|
---|
307 | /* ---------------------------------------------------------------- */
|
---|
308 |
|
---|
309 | /* Define to the size of `int', as computed by sizeof. */
|
---|
310 | #define SIZEOF_INT 4
|
---|
311 |
|
---|
312 | /* Define to the size of `long long', as computed by sizeof. */
|
---|
313 | /* #define SIZEOF_LONG_LONG 8 */
|
---|
314 |
|
---|
315 | /* Define to the size of `long', as computed by sizeof. */
|
---|
316 | #define SIZEOF_LONG 4
|
---|
317 |
|
---|
318 | /* Define to the size of `size_t', as computed by sizeof. */
|
---|
319 | #if defined(_WIN64)
|
---|
320 | # define SIZEOF_SIZE_T 8
|
---|
321 | #else
|
---|
322 | # define SIZEOF_SIZE_T 4
|
---|
323 | #endif
|
---|
324 |
|
---|
325 | /* Define to the size of `curl_off_t', as computed by sizeof. */
|
---|
326 | #define SIZEOF_CURL_OFF_T 8
|
---|
327 |
|
---|
328 | /* ---------------------------------------------------------------- */
|
---|
329 | /* BSD-style lwIP TCP/IP stack SPECIFIC */
|
---|
330 | /* ---------------------------------------------------------------- */
|
---|
331 |
|
---|
332 | /* Define to use BSD-style lwIP TCP/IP stack. */
|
---|
333 | /* #define USE_LWIPSOCK 1 */
|
---|
334 |
|
---|
335 | #ifdef USE_LWIPSOCK
|
---|
336 | # undef USE_WINSOCK
|
---|
337 | # undef HAVE_WINSOCK2_H
|
---|
338 | # undef HAVE_WS2TCPIP_H
|
---|
339 | # undef HAVE_GETHOSTNAME
|
---|
340 | # undef LWIP_POSIX_SOCKETS_IO_NAMES
|
---|
341 | # undef RECV_TYPE_ARG1
|
---|
342 | # undef RECV_TYPE_ARG3
|
---|
343 | # undef SEND_TYPE_ARG1
|
---|
344 | # undef SEND_TYPE_ARG3
|
---|
345 | # define HAVE_FREEADDRINFO
|
---|
346 | # define HAVE_GETADDRINFO
|
---|
347 | # define HAVE_GETHOSTBYNAME_R
|
---|
348 | # define HAVE_GETHOSTBYNAME_R_6
|
---|
349 | # define LWIP_POSIX_SOCKETS_IO_NAMES 0
|
---|
350 | # define RECV_TYPE_ARG1 int
|
---|
351 | # define RECV_TYPE_ARG3 size_t
|
---|
352 | # define SEND_TYPE_ARG1 int
|
---|
353 | # define SEND_TYPE_ARG3 size_t
|
---|
354 | #endif
|
---|
355 |
|
---|
356 | /* ---------------------------------------------------------------- */
|
---|
357 | /* Watt-32 tcp/ip SPECIFIC */
|
---|
358 | /* ---------------------------------------------------------------- */
|
---|
359 |
|
---|
360 | #ifdef USE_WATT32
|
---|
361 | #include <tcp.h>
|
---|
362 | #undef byte
|
---|
363 | #undef word
|
---|
364 | #undef USE_WINSOCK
|
---|
365 | #undef HAVE_WINSOCK2_H
|
---|
366 | #undef HAVE_WS2TCPIP_H
|
---|
367 | #define HAVE_GETADDRINFO
|
---|
368 | #define HAVE_SYS_IOCTL_H
|
---|
369 | #define HAVE_SYS_SOCKET_H
|
---|
370 | #define HAVE_NETINET_IN_H
|
---|
371 | #define HAVE_NETDB_H
|
---|
372 | #define HAVE_ARPA_INET_H
|
---|
373 | #define HAVE_FREEADDRINFO
|
---|
374 | #define SOCKET int
|
---|
375 | #endif
|
---|
376 |
|
---|
377 |
|
---|
378 | /* ---------------------------------------------------------------- */
|
---|
379 | /* COMPILER SPECIFIC */
|
---|
380 | /* ---------------------------------------------------------------- */
|
---|
381 |
|
---|
382 | /* Define to nothing if compiler does not support 'const' qualifier. */
|
---|
383 | /* #define const */
|
---|
384 |
|
---|
385 | /* Define to nothing if compiler does not support 'volatile' qualifier. */
|
---|
386 | /* #define volatile */
|
---|
387 |
|
---|
388 | /* Windows should not have HAVE_GMTIME_R defined */
|
---|
389 | /* #undef HAVE_GMTIME_R */
|
---|
390 |
|
---|
391 | /* Define if the compiler supports C99 variadic macro style. */
|
---|
392 | #if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
---|
393 | #define HAVE_VARIADIC_MACROS_C99 1
|
---|
394 | #endif
|
---|
395 |
|
---|
396 | /* Define if the compiler supports the 'long long' data type. */
|
---|
397 | #if defined(__MINGW32__) || \
|
---|
398 | (defined(_MSC_VER) && (_MSC_VER >= 1310)) || \
|
---|
399 | (defined(__BORLANDC__) && (__BORLANDC__ >= 0x561))
|
---|
400 | #define HAVE_LONGLONG 1
|
---|
401 | #endif
|
---|
402 |
|
---|
403 | /* Define to avoid VS2005 complaining about portable C functions. */
|
---|
404 | #if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
---|
405 | #define _CRT_SECURE_NO_DEPRECATE 1
|
---|
406 | #define _CRT_NONSTDC_NO_DEPRECATE 1
|
---|
407 | #endif
|
---|
408 |
|
---|
409 | /* mingw-w64, mingw using >= MSVCR80, and visual studio >= 2005 (MSVCR80)
|
---|
410 | all default to 64-bit time_t unless _USE_32BIT_TIME_T is defined */
|
---|
411 | #if defined(__MINGW64_VERSION_MAJOR) || \
|
---|
412 | (defined(__MINGW32__) && (__MSVCRT_VERSION__ >= 0x0800)) || \
|
---|
413 | (defined(_MSC_VER) && (_MSC_VER >= 1400))
|
---|
414 | # ifndef _USE_32BIT_TIME_T
|
---|
415 | # define SIZEOF_TIME_T 8
|
---|
416 | # else
|
---|
417 | # define SIZEOF_TIME_T 4
|
---|
418 | # endif
|
---|
419 | #endif
|
---|
420 |
|
---|
421 | /* Define some minimum and default build targets for Visual Studio */
|
---|
422 | #if defined(_MSC_VER)
|
---|
423 | /* Officially, Microsoft's Windows SDK versions 6.X does not support Windows
|
---|
424 | 2000 as a supported build target. VS2008 default installations provides
|
---|
425 | an embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
|
---|
426 | valid build target for VS2008. Popular belief is that binaries built with
|
---|
427 | VS2008 using Windows SDK versions v6.X and Windows 2000 as a build target
|
---|
428 | are functional. */
|
---|
429 | # define VS2008_MIN_TARGET 0x0500
|
---|
430 |
|
---|
431 | /* The minimum build target for VS2012 is Vista unless Update 1 is installed
|
---|
432 | and the v110_xp toolset is chosen. */
|
---|
433 | # if defined(_USING_V110_SDK71_)
|
---|
434 | # define VS2012_MIN_TARGET 0x0501
|
---|
435 | # else
|
---|
436 | # define VS2012_MIN_TARGET 0x0600
|
---|
437 | # endif
|
---|
438 |
|
---|
439 | /* VS2008 default build target is Windows Vista. We override default target
|
---|
440 | to be Windows XP. */
|
---|
441 | # define VS2008_DEF_TARGET 0x0501
|
---|
442 |
|
---|
443 | /* VS2012 default build target is Windows Vista unless Update 1 is installed
|
---|
444 | and the v110_xp toolset is chosen. */
|
---|
445 | # if defined(_USING_V110_SDK71_)
|
---|
446 | # define VS2012_DEF_TARGET 0x0501
|
---|
447 | # else
|
---|
448 | # define VS2012_DEF_TARGET 0x0600
|
---|
449 | # endif
|
---|
450 | #endif
|
---|
451 |
|
---|
452 | /* VS2008 default target settings and minimum build target check. */
|
---|
453 | #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600)
|
---|
454 | # ifndef _WIN32_WINNT
|
---|
455 | # define _WIN32_WINNT VS2008_DEF_TARGET
|
---|
456 | # endif
|
---|
457 | # ifndef WINVER
|
---|
458 | # define WINVER VS2008_DEF_TARGET
|
---|
459 | # endif
|
---|
460 | # if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
|
---|
461 | # error VS2008 does not support Windows build targets prior to Windows 2000
|
---|
462 | # endif
|
---|
463 | #endif
|
---|
464 |
|
---|
465 | /* VS2012 default target settings and minimum build target check. */
|
---|
466 | #if defined(_MSC_VER) && (_MSC_VER >= 1700)
|
---|
467 | # ifndef _WIN32_WINNT
|
---|
468 | # define _WIN32_WINNT VS2012_DEF_TARGET
|
---|
469 | # endif
|
---|
470 | # ifndef WINVER
|
---|
471 | # define WINVER VS2012_DEF_TARGET
|
---|
472 | # endif
|
---|
473 | # if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
|
---|
474 | # if defined(_USING_V110_SDK71_)
|
---|
475 | # error VS2012 does not support Windows build targets prior to Windows XP
|
---|
476 | # else
|
---|
477 | # error VS2012 does not support Windows build targets prior to Windows \
|
---|
478 | Vista
|
---|
479 | # endif
|
---|
480 | # endif
|
---|
481 | #endif
|
---|
482 |
|
---|
483 | /* When no build target is specified Pelles C 5.00 and later default build
|
---|
484 | target is Windows Vista. We override default target to be Windows 2000. */
|
---|
485 | #if defined(__POCC__) && (__POCC__ >= 500)
|
---|
486 | # ifndef _WIN32_WINNT
|
---|
487 | # define _WIN32_WINNT 0x0500
|
---|
488 | # endif
|
---|
489 | # ifndef WINVER
|
---|
490 | # define WINVER 0x0500
|
---|
491 | # endif
|
---|
492 | #endif
|
---|
493 |
|
---|
494 | /* Availability of freeaddrinfo, getaddrinfo, and if_nametoindex
|
---|
495 | functions is quite convoluted, compiler dependent and even build target
|
---|
496 | dependent. */
|
---|
497 | #if defined(HAVE_WS2TCPIP_H)
|
---|
498 | # if defined(__POCC__)
|
---|
499 | # define HAVE_FREEADDRINFO 1
|
---|
500 | # define HAVE_GETADDRINFO 1
|
---|
501 | # define HAVE_GETADDRINFO_THREADSAFE 1
|
---|
502 | # elif defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
|
---|
503 | # define HAVE_FREEADDRINFO 1
|
---|
504 | # define HAVE_GETADDRINFO 1
|
---|
505 | # define HAVE_GETADDRINFO_THREADSAFE 1
|
---|
506 | # elif defined(_MSC_VER) && (_MSC_VER >= 1200)
|
---|
507 | # define HAVE_FREEADDRINFO 1
|
---|
508 | # define HAVE_GETADDRINFO 1
|
---|
509 | # define HAVE_GETADDRINFO_THREADSAFE 1
|
---|
510 | # endif
|
---|
511 | #endif
|
---|
512 |
|
---|
513 | #if defined(__POCC__)
|
---|
514 | # ifndef _MSC_VER
|
---|
515 | # error Microsoft extensions /Ze compiler option is required
|
---|
516 | # endif
|
---|
517 | # ifndef __POCC__OLDNAMES
|
---|
518 | # error Compatibility names /Go compiler option is required
|
---|
519 | # endif
|
---|
520 | #endif
|
---|
521 |
|
---|
522 | /* ---------------------------------------------------------------- */
|
---|
523 | /* STRUCT RELATED */
|
---|
524 | /* ---------------------------------------------------------------- */
|
---|
525 |
|
---|
526 | /* Define if you have struct sockaddr_storage. */
|
---|
527 | #if !defined(__SALFORDC__) && !defined(__BORLANDC__)
|
---|
528 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
---|
529 | #endif
|
---|
530 |
|
---|
531 | /* Define if you have struct timeval. */
|
---|
532 | #define HAVE_STRUCT_TIMEVAL 1
|
---|
533 |
|
---|
534 | /* Define if struct sockaddr_in6 has the sin6_scope_id member. */
|
---|
535 | #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
---|
536 |
|
---|
537 | /* ---------------------------------------------------------------- */
|
---|
538 | /* LARGE FILE SUPPORT */
|
---|
539 | /* ---------------------------------------------------------------- */
|
---|
540 |
|
---|
541 | #if defined(_MSC_VER) && !defined(_WIN32_WCE)
|
---|
542 | # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
|
---|
543 | # define USE_WIN32_LARGE_FILES
|
---|
544 | # else
|
---|
545 | # define USE_WIN32_SMALL_FILES
|
---|
546 | # endif
|
---|
547 | #endif
|
---|
548 |
|
---|
549 | #if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
|
---|
550 | # define USE_WIN32_LARGE_FILES
|
---|
551 | #endif
|
---|
552 |
|
---|
553 | #if defined(__POCC__)
|
---|
554 | # undef USE_WIN32_LARGE_FILES
|
---|
555 | #endif
|
---|
556 |
|
---|
557 | #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
|
---|
558 | # define USE_WIN32_SMALL_FILES
|
---|
559 | #endif
|
---|
560 |
|
---|
561 | /* Number of bits in a file offset, on hosts where this is settable. */
|
---|
562 | #if defined(USE_WIN32_LARGE_FILES) && defined(__MINGW64_VERSION_MAJOR)
|
---|
563 | # ifndef _FILE_OFFSET_BITS
|
---|
564 | # define _FILE_OFFSET_BITS 64
|
---|
565 | # endif
|
---|
566 | #endif
|
---|
567 |
|
---|
568 | /* Define to the size of `off_t', as computed by sizeof. */
|
---|
569 | #if defined(__MINGW64_VERSION_MAJOR) && \
|
---|
570 | defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
|
---|
571 | # define SIZEOF_OFF_T 8
|
---|
572 | #else
|
---|
573 | # define SIZEOF_OFF_T 4
|
---|
574 | #endif
|
---|
575 |
|
---|
576 | /* ---------------------------------------------------------------- */
|
---|
577 | /* DNS RESOLVER SPECIALTY */
|
---|
578 | /* ---------------------------------------------------------------- */
|
---|
579 |
|
---|
580 | /*
|
---|
581 | * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
|
---|
582 | */
|
---|
583 |
|
---|
584 | /* Define to enable c-ares asynchronous DNS lookups. */
|
---|
585 | /* #define USE_ARES 1 */
|
---|
586 |
|
---|
587 | /* Default define to enable threaded asynchronous DNS lookups. */
|
---|
588 | #if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \
|
---|
589 | !defined(USE_THREADS_WIN32)
|
---|
590 | # define USE_THREADS_WIN32 1
|
---|
591 | #endif
|
---|
592 |
|
---|
593 | #if defined(USE_ARES) && defined(USE_THREADS_WIN32)
|
---|
594 | # error "Only one DNS lookup specialty may be defined at most"
|
---|
595 | #endif
|
---|
596 |
|
---|
597 | /* ---------------------------------------------------------------- */
|
---|
598 | /* LDAP SUPPORT */
|
---|
599 | /* ---------------------------------------------------------------- */
|
---|
600 |
|
---|
601 | #if defined(CURL_HAS_NOVELL_LDAPSDK)
|
---|
602 | #undef USE_WIN32_LDAP
|
---|
603 | #define HAVE_LDAP_SSL_H 1
|
---|
604 | #define HAVE_LDAP_URL_PARSE 1
|
---|
605 | #elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
|
---|
606 | #undef USE_WIN32_LDAP
|
---|
607 | #define HAVE_LDAP_URL_PARSE 1
|
---|
608 | #else
|
---|
609 | #undef HAVE_LDAP_URL_PARSE
|
---|
610 | #define HAVE_LDAP_SSL 1
|
---|
611 | #define USE_WIN32_LDAP 1
|
---|
612 | #endif
|
---|
613 |
|
---|
614 | #if defined(__POCC__) && defined(USE_WIN32_LDAP)
|
---|
615 | # define CURL_DISABLE_LDAP 1
|
---|
616 | #endif
|
---|
617 |
|
---|
618 | /* Define to use the Windows crypto library. */
|
---|
619 | #if !defined(CURL_WINDOWS_APP)
|
---|
620 | #define USE_WIN32_CRYPTO
|
---|
621 | #endif
|
---|
622 |
|
---|
623 | /* Define to use Unix sockets. */
|
---|
624 | #define USE_UNIX_SOCKETS
|
---|
625 |
|
---|
626 | /* ---------------------------------------------------------------- */
|
---|
627 | /* ADDITIONAL DEFINITIONS */
|
---|
628 | /* ---------------------------------------------------------------- */
|
---|
629 |
|
---|
630 | /* Define cpu-machine-OS */
|
---|
631 | #ifndef OS
|
---|
632 | #if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
|
---|
633 | #define OS "i386-pc-win32"
|
---|
634 | #elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */
|
---|
635 | #define OS "x86_64-pc-win32"
|
---|
636 | #elif defined(_M_IA64) || defined(__ia64__) /* Itanium */
|
---|
637 | #define OS "ia64-pc-win32"
|
---|
638 | #elif defined(_M_ARM_NT) || defined(__arm__) /* ARMv7-Thumb2 (Windows RT) */
|
---|
639 | #define OS "thumbv7a-pc-win32"
|
---|
640 | #elif defined(_M_ARM64) || defined(__aarch64__) /* ARM64 (Windows 10) */
|
---|
641 | #define OS "aarch64-pc-win32"
|
---|
642 | #else
|
---|
643 | #define OS "unknown-pc-win32"
|
---|
644 | #endif
|
---|
645 | #endif
|
---|
646 |
|
---|
647 | /* Name of package */
|
---|
648 | #define PACKAGE "curl"
|
---|
649 |
|
---|
650 | /* If you want to build curl with the built-in manual */
|
---|
651 | #define USE_MANUAL 1
|
---|
652 |
|
---|
653 | #if defined(__POCC__) || defined(USE_IPV6)
|
---|
654 | # define ENABLE_IPV6 1
|
---|
655 | #endif
|
---|
656 |
|
---|
657 | #endif /* HEADER_CURL_CONFIG_WIN32_H */
|
---|