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) 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 if you have the <io.h> header file. */
|
---|
42 | #define HAVE_IO_H 1
|
---|
43 |
|
---|
44 | /* Define if you have the <locale.h> header file. */
|
---|
45 | #define HAVE_LOCALE_H 1
|
---|
46 |
|
---|
47 | /* Define if you need <malloc.h> header even with <stdlib.h> header file. */
|
---|
48 | #define NEED_MALLOC_H 1
|
---|
49 |
|
---|
50 | /* Define if you have the <netdb.h> header file. */
|
---|
51 | /* #define HAVE_NETDB_H 1 */
|
---|
52 |
|
---|
53 | /* Define if you have the <netinet/in.h> header file. */
|
---|
54 | /* #define HAVE_NETINET_IN_H 1 */
|
---|
55 |
|
---|
56 | /* Define to 1 if you have the <stdbool.h> header file. */
|
---|
57 | #if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
|
---|
58 | #define HAVE_STDBOOL_H 1
|
---|
59 | #endif
|
---|
60 |
|
---|
61 | /* Define if you have the <sys/param.h> header file. */
|
---|
62 | #if defined(__MINGW32__)
|
---|
63 | #define HAVE_SYS_PARAM_H 1
|
---|
64 | #endif
|
---|
65 |
|
---|
66 | /* Define if you have the <sys/select.h> header file. */
|
---|
67 | /* #define HAVE_SYS_SELECT_H 1 */
|
---|
68 |
|
---|
69 | /* Define if you have the <sys/socket.h> header file. */
|
---|
70 | /* #define HAVE_SYS_SOCKET_H 1 */
|
---|
71 |
|
---|
72 | /* Define if you have the <sys/sockio.h> header file. */
|
---|
73 | /* #define HAVE_SYS_SOCKIO_H 1 */
|
---|
74 |
|
---|
75 | /* Define if you have the <sys/stat.h> header file. */
|
---|
76 | #define HAVE_SYS_STAT_H 1
|
---|
77 |
|
---|
78 | /* Define if you have the <sys/time.h> header file. */
|
---|
79 | #if defined(__MINGW32__)
|
---|
80 | #define HAVE_SYS_TIME_H 1
|
---|
81 | #endif
|
---|
82 |
|
---|
83 | /* Define if you have the <sys/types.h> header file. */
|
---|
84 | #define HAVE_SYS_TYPES_H 1
|
---|
85 |
|
---|
86 | /* Define if you have the <sys/utime.h> header file. */
|
---|
87 | #define HAVE_SYS_UTIME_H 1
|
---|
88 |
|
---|
89 | /* Define if you have the <termio.h> header file. */
|
---|
90 | /* #define HAVE_TERMIO_H 1 */
|
---|
91 |
|
---|
92 | /* Define if you have the <termios.h> header file. */
|
---|
93 | /* #define HAVE_TERMIOS_H 1 */
|
---|
94 |
|
---|
95 | /* Define if you have the <unistd.h> header file. */
|
---|
96 | #if defined(__MINGW32__)
|
---|
97 | #define HAVE_UNISTD_H 1
|
---|
98 | #endif
|
---|
99 |
|
---|
100 | /* Define to 1 if you have the <libgen.h> header file. */
|
---|
101 | #if defined(__MINGW32__)
|
---|
102 | #define HAVE_LIBGEN_H 1
|
---|
103 | #endif
|
---|
104 |
|
---|
105 | /* ---------------------------------------------------------------- */
|
---|
106 | /* OTHER HEADER INFO */
|
---|
107 | /* ---------------------------------------------------------------- */
|
---|
108 |
|
---|
109 | /* Define if you have the ANSI C header files. */
|
---|
110 | #define STDC_HEADERS 1
|
---|
111 |
|
---|
112 | /* Define to 1 if bool is an available type. */
|
---|
113 | #if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
|
---|
114 | #define HAVE_BOOL_T 1
|
---|
115 | #endif
|
---|
116 |
|
---|
117 | /* ---------------------------------------------------------------- */
|
---|
118 | /* FUNCTIONS */
|
---|
119 | /* ---------------------------------------------------------------- */
|
---|
120 |
|
---|
121 | /* Define if you have the closesocket function. */
|
---|
122 | #define HAVE_CLOSESOCKET 1
|
---|
123 |
|
---|
124 | /* Define if you have the ftruncate function. */
|
---|
125 | #if defined(__MINGW32__)
|
---|
126 | #define HAVE_FTRUNCATE 1
|
---|
127 | #endif
|
---|
128 |
|
---|
129 | /* Define to 1 if you have the `getpeername' function. */
|
---|
130 | #define HAVE_GETPEERNAME 1
|
---|
131 |
|
---|
132 | /* Define to 1 if you have the getsockname function. */
|
---|
133 | #define HAVE_GETSOCKNAME 1
|
---|
134 |
|
---|
135 | /* Define if you have the gethostname function. */
|
---|
136 | #define HAVE_GETHOSTNAME 1
|
---|
137 |
|
---|
138 | /* Define if you have the gettimeofday function. */
|
---|
139 | #if defined(__MINGW32__)
|
---|
140 | #define HAVE_GETTIMEOFDAY 1
|
---|
141 | #endif
|
---|
142 |
|
---|
143 | /* Define if you have the ioctlsocket function. */
|
---|
144 | #define HAVE_IOCTLSOCKET 1
|
---|
145 |
|
---|
146 | /* Define if you have a working ioctlsocket FIONBIO function. */
|
---|
147 | #define HAVE_IOCTLSOCKET_FIONBIO 1
|
---|
148 |
|
---|
149 | /* Define if you have the select function. */
|
---|
150 | #define HAVE_SELECT 1
|
---|
151 |
|
---|
152 | /* Define if you have the setlocale function. */
|
---|
153 | #define HAVE_SETLOCALE 1
|
---|
154 |
|
---|
155 | /* Define if you have the setmode function. */
|
---|
156 | #define HAVE_SETMODE 1
|
---|
157 |
|
---|
158 | /* Define if you have the _setmode function. */
|
---|
159 | #define HAVE__SETMODE 1
|
---|
160 |
|
---|
161 | /* Define if you have the socket function. */
|
---|
162 | #define HAVE_SOCKET 1
|
---|
163 |
|
---|
164 | /* Define if you have the strcasecmp function. */
|
---|
165 | #if defined(__MINGW32__)
|
---|
166 | #define HAVE_STRCASECMP 1
|
---|
167 | #endif
|
---|
168 |
|
---|
169 | /* Define if you have the strdup function. */
|
---|
170 | #define HAVE_STRDUP 1
|
---|
171 |
|
---|
172 | /* Define if you have the stricmp function. */
|
---|
173 | #define HAVE_STRICMP 1
|
---|
174 |
|
---|
175 | /* Define if you have the strtoll function. */
|
---|
176 | #if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__)
|
---|
177 | #define HAVE_STRTOLL 1
|
---|
178 | #endif
|
---|
179 |
|
---|
180 | /* Define if you have the utime function. */
|
---|
181 | #define HAVE_UTIME 1
|
---|
182 |
|
---|
183 | /* Define if you have the recv function. */
|
---|
184 | #define HAVE_RECV 1
|
---|
185 |
|
---|
186 | /* Define to the type of arg 1 for recv. */
|
---|
187 | #define RECV_TYPE_ARG1 SOCKET
|
---|
188 |
|
---|
189 | /* Define to the type of arg 2 for recv. */
|
---|
190 | #define RECV_TYPE_ARG2 char *
|
---|
191 |
|
---|
192 | /* Define to the type of arg 3 for recv. */
|
---|
193 | #define RECV_TYPE_ARG3 int
|
---|
194 |
|
---|
195 | /* Define to the type of arg 4 for recv. */
|
---|
196 | #define RECV_TYPE_ARG4 int
|
---|
197 |
|
---|
198 | /* Define to the function return type for recv. */
|
---|
199 | #define RECV_TYPE_RETV int
|
---|
200 |
|
---|
201 | /* Define if you have the send function. */
|
---|
202 | #define HAVE_SEND 1
|
---|
203 |
|
---|
204 | /* Define to the type of arg 1 for send. */
|
---|
205 | #define SEND_TYPE_ARG1 SOCKET
|
---|
206 |
|
---|
207 | /* Define to the type qualifier of arg 2 for send. */
|
---|
208 | #define SEND_QUAL_ARG2 const
|
---|
209 |
|
---|
210 | /* Define to the type of arg 2 for send. */
|
---|
211 | #define SEND_TYPE_ARG2 char *
|
---|
212 |
|
---|
213 | /* Define to the type of arg 3 for send. */
|
---|
214 | #define SEND_TYPE_ARG3 int
|
---|
215 |
|
---|
216 | /* Define to the type of arg 4 for send. */
|
---|
217 | #define SEND_TYPE_ARG4 int
|
---|
218 |
|
---|
219 | /* Define to the function return type for send. */
|
---|
220 | #define SEND_TYPE_RETV int
|
---|
221 |
|
---|
222 | /* Define to 1 if you have the snprintf function. */
|
---|
223 | #if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || defined(__MINGW32__)
|
---|
224 | #define HAVE_SNPRINTF 1
|
---|
225 | #endif
|
---|
226 |
|
---|
227 | #if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x600 /* Vista */
|
---|
228 | /* Define to 1 if you have a IPv6 capable working inet_ntop function. */
|
---|
229 | #define HAVE_INET_NTOP 1
|
---|
230 | /* Define to 1 if you have a IPv6 capable working inet_pton function. */
|
---|
231 | #define HAVE_INET_PTON 1
|
---|
232 | #endif
|
---|
233 |
|
---|
234 | /* Define to 1 if you have the `basename' function. */
|
---|
235 | #if defined(__MINGW32__)
|
---|
236 | #define HAVE_BASENAME 1
|
---|
237 | #endif
|
---|
238 |
|
---|
239 | /* Define to 1 if you have the strtok_r function. */
|
---|
240 | #if defined(__MINGW32__)
|
---|
241 | #define HAVE_STRTOK_R 1
|
---|
242 | #endif
|
---|
243 |
|
---|
244 | /* Define to 1 if you have the signal function. */
|
---|
245 | #define HAVE_SIGNAL 1
|
---|
246 |
|
---|
247 | /* ---------------------------------------------------------------- */
|
---|
248 | /* TYPEDEF REPLACEMENTS */
|
---|
249 | /* ---------------------------------------------------------------- */
|
---|
250 |
|
---|
251 | /* Define if in_addr_t is not an available 'typedefed' type. */
|
---|
252 | #define in_addr_t unsigned long
|
---|
253 |
|
---|
254 | /* Define if ssize_t is not an available 'typedefed' type. */
|
---|
255 | #ifndef _SSIZE_T_DEFINED
|
---|
256 | # if defined(__MINGW32__)
|
---|
257 | # elif defined(_WIN64)
|
---|
258 | # define _SSIZE_T_DEFINED
|
---|
259 | # define ssize_t __int64
|
---|
260 | # else
|
---|
261 | # define _SSIZE_T_DEFINED
|
---|
262 | # define ssize_t int
|
---|
263 | # endif
|
---|
264 | #endif
|
---|
265 |
|
---|
266 | /* ---------------------------------------------------------------- */
|
---|
267 | /* TYPE SIZES */
|
---|
268 | /* ---------------------------------------------------------------- */
|
---|
269 |
|
---|
270 | /* Define to the size of `int', as computed by sizeof. */
|
---|
271 | #define SIZEOF_INT 4
|
---|
272 |
|
---|
273 | /* Define to the size of `long long', as computed by sizeof. */
|
---|
274 | /* #define SIZEOF_LONG_LONG 8 */
|
---|
275 |
|
---|
276 | /* Define to the size of `long', as computed by sizeof. */
|
---|
277 | #define SIZEOF_LONG 4
|
---|
278 |
|
---|
279 | /* Define to the size of `size_t', as computed by sizeof. */
|
---|
280 | #if defined(_WIN64)
|
---|
281 | # define SIZEOF_SIZE_T 8
|
---|
282 | #else
|
---|
283 | # define SIZEOF_SIZE_T 4
|
---|
284 | #endif
|
---|
285 |
|
---|
286 | /* Define to the size of `curl_off_t', as computed by sizeof. */
|
---|
287 | #define SIZEOF_CURL_OFF_T 8
|
---|
288 |
|
---|
289 | /* ---------------------------------------------------------------- */
|
---|
290 | /* COMPILER SPECIFIC */
|
---|
291 | /* ---------------------------------------------------------------- */
|
---|
292 |
|
---|
293 | /* Define to nothing if compiler does not support 'const' qualifier. */
|
---|
294 | /* #define const */
|
---|
295 |
|
---|
296 | /* Define to nothing if compiler does not support 'volatile' qualifier. */
|
---|
297 | /* #define volatile */
|
---|
298 |
|
---|
299 | /* Windows should not have HAVE_GMTIME_R defined */
|
---|
300 | /* #undef HAVE_GMTIME_R */
|
---|
301 |
|
---|
302 | /* Define if the compiler supports the 'long long' data type. */
|
---|
303 | #if (defined(_MSC_VER) && (_MSC_VER >= 1310)) || defined(__MINGW32__)
|
---|
304 | #define HAVE_LONGLONG 1
|
---|
305 | #endif
|
---|
306 |
|
---|
307 | /* Define to avoid VS2005 complaining about portable C functions. */
|
---|
308 | #if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
---|
309 | #define _CRT_SECURE_NO_DEPRECATE 1
|
---|
310 | #define _CRT_NONSTDC_NO_DEPRECATE 1
|
---|
311 | #endif
|
---|
312 |
|
---|
313 | /* mingw-w64 and visual studio >= 2005 (MSVCR80)
|
---|
314 | all default to 64-bit time_t unless _USE_32BIT_TIME_T is defined */
|
---|
315 | #if (defined(_MSC_VER) && (_MSC_VER >= 1400)) || defined(__MINGW32__)
|
---|
316 | # ifndef _USE_32BIT_TIME_T
|
---|
317 | # define SIZEOF_TIME_T 8
|
---|
318 | # else
|
---|
319 | # define SIZEOF_TIME_T 4
|
---|
320 | # endif
|
---|
321 | #endif
|
---|
322 |
|
---|
323 | /* Define some minimum and default build targets for Visual Studio */
|
---|
324 | #if defined(_MSC_VER)
|
---|
325 | /* Officially, Microsoft's Windows SDK versions 6.X does not support Windows
|
---|
326 | 2000 as a supported build target. VS2008 default installations provides
|
---|
327 | an embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
|
---|
328 | valid build target for VS2008. Popular belief is that binaries built with
|
---|
329 | VS2008 using Windows SDK versions v6.X and Windows 2000 as a build target
|
---|
330 | are functional. */
|
---|
331 | # define VS2008_MIN_TARGET 0x0500
|
---|
332 |
|
---|
333 | /* The minimum build target for VS2012 is Vista unless Update 1 is installed
|
---|
334 | and the v110_xp toolset is chosen. */
|
---|
335 | # if defined(_USING_V110_SDK71_)
|
---|
336 | # define VS2012_MIN_TARGET 0x0501
|
---|
337 | # else
|
---|
338 | # define VS2012_MIN_TARGET 0x0600
|
---|
339 | # endif
|
---|
340 |
|
---|
341 | /* VS2008 default build target is Windows Vista. We override default target
|
---|
342 | to be Windows XP. */
|
---|
343 | # define VS2008_DEF_TARGET 0x0501
|
---|
344 |
|
---|
345 | /* VS2012 default build target is Windows Vista unless Update 1 is installed
|
---|
346 | and the v110_xp toolset is chosen. */
|
---|
347 | # if defined(_USING_V110_SDK71_)
|
---|
348 | # define VS2012_DEF_TARGET 0x0501
|
---|
349 | # else
|
---|
350 | # define VS2012_DEF_TARGET 0x0600
|
---|
351 | # endif
|
---|
352 | #endif
|
---|
353 |
|
---|
354 | /* VS2008 default target settings and minimum build target check. */
|
---|
355 | #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600)
|
---|
356 | # ifndef _WIN32_WINNT
|
---|
357 | # define _WIN32_WINNT VS2008_DEF_TARGET
|
---|
358 | # endif
|
---|
359 | # ifndef WINVER
|
---|
360 | # define WINVER VS2008_DEF_TARGET
|
---|
361 | # endif
|
---|
362 | # if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
|
---|
363 | # error VS2008 does not support Windows build targets prior to Windows 2000
|
---|
364 | # endif
|
---|
365 | #endif
|
---|
366 |
|
---|
367 | /* VS2012 default target settings and minimum build target check. */
|
---|
368 | #if defined(_MSC_VER) && (_MSC_VER >= 1700)
|
---|
369 | # ifndef _WIN32_WINNT
|
---|
370 | # define _WIN32_WINNT VS2012_DEF_TARGET
|
---|
371 | # endif
|
---|
372 | # ifndef WINVER
|
---|
373 | # define WINVER VS2012_DEF_TARGET
|
---|
374 | # endif
|
---|
375 | # if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
|
---|
376 | # if defined(_USING_V110_SDK71_)
|
---|
377 | # error VS2012 does not support Windows build targets prior to Windows XP
|
---|
378 | # else
|
---|
379 | # error VS2012 does not support Windows build targets prior to Windows \
|
---|
380 | Vista
|
---|
381 | # endif
|
---|
382 | # endif
|
---|
383 | #endif
|
---|
384 |
|
---|
385 | /* Windows XP is required for freeaddrinfo, getaddrinfo */
|
---|
386 | #define HAVE_FREEADDRINFO 1
|
---|
387 | #define HAVE_GETADDRINFO 1
|
---|
388 | #define HAVE_GETADDRINFO_THREADSAFE 1
|
---|
389 |
|
---|
390 | /* ---------------------------------------------------------------- */
|
---|
391 | /* STRUCT RELATED */
|
---|
392 | /* ---------------------------------------------------------------- */
|
---|
393 |
|
---|
394 | /* Define if you have struct sockaddr_storage. */
|
---|
395 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
---|
396 |
|
---|
397 | /* Define if you have struct timeval. */
|
---|
398 | #define HAVE_STRUCT_TIMEVAL 1
|
---|
399 |
|
---|
400 | /* Define if struct sockaddr_in6 has the sin6_scope_id member. */
|
---|
401 | #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
|
---|
402 |
|
---|
403 | /* ---------------------------------------------------------------- */
|
---|
404 | /* LARGE FILE SUPPORT */
|
---|
405 | /* ---------------------------------------------------------------- */
|
---|
406 |
|
---|
407 | #if defined(_MSC_VER) && !defined(_WIN32_WCE)
|
---|
408 | # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
|
---|
409 | # define USE_WIN32_LARGE_FILES
|
---|
410 | # else
|
---|
411 | # define USE_WIN32_SMALL_FILES
|
---|
412 | # endif
|
---|
413 | #endif
|
---|
414 |
|
---|
415 | #if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
|
---|
416 | # define USE_WIN32_LARGE_FILES
|
---|
417 | #endif
|
---|
418 |
|
---|
419 | #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
|
---|
420 | # define USE_WIN32_SMALL_FILES
|
---|
421 | #endif
|
---|
422 |
|
---|
423 | /* Number of bits in a file offset, on hosts where this is settable. */
|
---|
424 | #if defined(USE_WIN32_LARGE_FILES) && defined(__MINGW32__)
|
---|
425 | # ifndef _FILE_OFFSET_BITS
|
---|
426 | # define _FILE_OFFSET_BITS 64
|
---|
427 | # endif
|
---|
428 | #endif
|
---|
429 |
|
---|
430 | /* Define to the size of `off_t', as computed by sizeof. */
|
---|
431 | #if defined(__MINGW32__) && \
|
---|
432 | defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
|
---|
433 | # define SIZEOF_OFF_T 8
|
---|
434 | #else
|
---|
435 | # define SIZEOF_OFF_T 4
|
---|
436 | #endif
|
---|
437 |
|
---|
438 | /* ---------------------------------------------------------------- */
|
---|
439 | /* DNS RESOLVER SPECIALTY */
|
---|
440 | /* ---------------------------------------------------------------- */
|
---|
441 |
|
---|
442 | /*
|
---|
443 | * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS.
|
---|
444 | */
|
---|
445 |
|
---|
446 | /* Define to enable c-ares asynchronous DNS lookups. */
|
---|
447 | /* #define USE_ARES 1 */
|
---|
448 |
|
---|
449 | /* Default define to enable threaded asynchronous DNS lookups. */
|
---|
450 | #if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \
|
---|
451 | !defined(USE_THREADS_WIN32)
|
---|
452 | # define USE_THREADS_WIN32 1
|
---|
453 | #endif
|
---|
454 |
|
---|
455 | #if defined(USE_ARES) && defined(USE_THREADS_WIN32)
|
---|
456 | # error "Only one DNS lookup specialty may be defined at most"
|
---|
457 | #endif
|
---|
458 |
|
---|
459 | /* ---------------------------------------------------------------- */
|
---|
460 | /* LDAP SUPPORT */
|
---|
461 | /* ---------------------------------------------------------------- */
|
---|
462 |
|
---|
463 | #if defined(CURL_HAS_NOVELL_LDAPSDK)
|
---|
464 | #undef USE_WIN32_LDAP
|
---|
465 | #define HAVE_LDAP_SSL_H 1
|
---|
466 | #define HAVE_LDAP_URL_PARSE 1
|
---|
467 | #elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
|
---|
468 | #undef USE_WIN32_LDAP
|
---|
469 | #define HAVE_LDAP_URL_PARSE 1
|
---|
470 | #else
|
---|
471 | #undef HAVE_LDAP_URL_PARSE
|
---|
472 | #define HAVE_LDAP_SSL 1
|
---|
473 | #define USE_WIN32_LDAP 1
|
---|
474 | #endif
|
---|
475 |
|
---|
476 | /* Define to use the Windows crypto library. */
|
---|
477 | #if !defined(CURL_WINDOWS_UWP)
|
---|
478 | #define USE_WIN32_CRYPTO
|
---|
479 | #endif
|
---|
480 |
|
---|
481 | /* Define to use Unix sockets. */
|
---|
482 | #define USE_UNIX_SOCKETS
|
---|
483 |
|
---|
484 | /* ---------------------------------------------------------------- */
|
---|
485 | /* ADDITIONAL DEFINITIONS */
|
---|
486 | /* ---------------------------------------------------------------- */
|
---|
487 |
|
---|
488 | /* Define cpu-machine-OS */
|
---|
489 | #ifndef CURL_OS
|
---|
490 | #if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
|
---|
491 | #define CURL_OS "i386-pc-win32"
|
---|
492 | #elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */
|
---|
493 | #define CURL_OS "x86_64-pc-win32"
|
---|
494 | #elif defined(_M_IA64) || defined(__ia64__) /* Itanium */
|
---|
495 | #define CURL_OS "ia64-pc-win32"
|
---|
496 | #elif defined(_M_ARM_NT) || defined(__arm__) /* ARMv7-Thumb2 (Windows RT) */
|
---|
497 | #define CURL_OS "thumbv7a-pc-win32"
|
---|
498 | #elif defined(_M_ARM64) || defined(__aarch64__) /* ARM64 (Windows 10) */
|
---|
499 | #define CURL_OS "aarch64-pc-win32"
|
---|
500 | #else
|
---|
501 | #define CURL_OS "unknown-pc-win32"
|
---|
502 | #endif
|
---|
503 | #endif
|
---|
504 |
|
---|
505 | /* Name of package */
|
---|
506 | #define PACKAGE "curl"
|
---|
507 |
|
---|
508 | /* If you want to build curl with the built-in manual */
|
---|
509 | #define USE_MANUAL 1
|
---|
510 |
|
---|
511 | #endif /* HEADER_CURL_CONFIG_WIN32_H */
|
---|