Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / lib / config-win32.h
bloba0c0bf5b20b03e5fd9f3124e84ab942386af2930
1 #ifndef __LIB_CONFIG_WIN32_H
2 #define __LIB_CONFIG_WIN32_H
4 /* ================================================================ */
5 /* lib/config-win32.h - Hand crafted config file for Windows */
6 /* ================================================================ */
8 /* ---------------------------------------------------------------- */
9 /* HEADER FILES */
10 /* ---------------------------------------------------------------- */
12 /* Define if you have the <arpa/inet.h> header file. */
13 /* #define HAVE_ARPA_INET_H 1 */
15 /* Define if you have the <assert.h> header file. */
16 #define HAVE_ASSERT_H 1
18 /* Define if you have the <crypto.h> header file. */
19 /* #define HAVE_CRYPTO_H 1 */
21 /* Define if you have the <err.h> header file. */
22 /* #define HAVE_ERR_H 1 */
24 /* Define if you have the <fcntl.h> header file. */
25 #define HAVE_FCNTL_H 1
27 /* Define if you have the <getopt.h> header file. */
28 /* #define HAVE_GETOPT_H 1 */
30 /* Define if you have the <io.h> header file. */
31 #define HAVE_IO_H 1
33 /* Define if you need the malloc.h header file even with stdlib.h */
34 #ifndef __SALFORDC__
35 #define NEED_MALLOC_H 1
36 #endif
38 /* Define if you have the <netdb.h> header file. */
39 /* #define HAVE_NETDB_H 1 */
41 /* Define if you have the <netinet/in.h> header file. */
42 /* #define HAVE_NETINET_IN_H 1 */
44 /* Define if you have the <process.h> header file. */
45 #ifndef __SALFORDC__
46 #define HAVE_PROCESS_H 1
47 #endif
49 /* Define if you have the <signal.h> header file. */
50 #define HAVE_SIGNAL_H 1
52 /* Define if you have the <sgtty.h> header file. */
53 /* #define HAVE_SGTTY_H 1 */
55 /* Define if you have the <ssl.h> header file. */
56 /* #define HAVE_SSL_H 1 */
58 /* Define if you have the <stdlib.h> header file. */
59 #define HAVE_STDLIB_H 1
61 /* Define if you have the <sys/param.h> header file. */
62 /* #define HAVE_SYS_PARAM_H 1 */
64 /* Define if you have the <sys/select.h> header file. */
65 /* #define HAVE_SYS_SELECT_H 1 */
67 /* Define if you have the <sys/socket.h> header file. */
68 /* #define HAVE_SYS_SOCKET_H 1 */
70 /* Define if you have the <sys/sockio.h> header file. */
71 /* #define HAVE_SYS_SOCKIO_H 1 */
73 /* Define if you have the <sys/stat.h> header file. */
74 #define HAVE_SYS_STAT_H 1
76 /* Define if you have the <sys/time.h> header file */
77 /* #define HAVE_SYS_TIME_H 1 */
79 /* Define if you have the <sys/types.h> header file. */
80 #define HAVE_SYS_TYPES_H 1
82 /* Define if you have the <sys/utime.h> header file */
83 #ifndef __BORLANDC__
84 #define HAVE_SYS_UTIME_H 1
85 #endif
87 /* Define if you have the <termio.h> header file. */
88 /* #define HAVE_TERMIO_H 1 */
90 /* Define if you have the <termios.h> header file. */
91 /* #define HAVE_TERMIOS_H 1 */
93 /* Define if you have the <time.h> header file. */
94 #define HAVE_TIME_H 1
96 /* Define if you have the <unistd.h> header file. */
97 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) || \
98 defined(__POCC__)
99 #define HAVE_UNISTD_H 1
100 #endif
102 /* Define if you have the <windows.h> header file. */
103 #define HAVE_WINDOWS_H 1
105 /* Define if you have the <winsock.h> header file. */
106 #define HAVE_WINSOCK_H 1
108 #ifndef __SALFORDC__
109 /* Define if you have the <winsock2.h> header file. */
110 #define HAVE_WINSOCK2_H 1
112 /* Define if you have the <ws2tcpip.h> header file. */
113 #define HAVE_WS2TCPIP_H 1
114 #endif
116 /* ---------------------------------------------------------------- */
117 /* OTHER HEADER INFO */
118 /* ---------------------------------------------------------------- */
120 /* Define if sig_atomic_t is an available typedef. */
121 #define HAVE_SIG_ATOMIC_T 1
123 /* Define if you have the ANSI C header files. */
124 #define STDC_HEADERS 1
126 /* Define if you can safely include both <sys/time.h> and <time.h>. */
127 /* #define TIME_WITH_SYS_TIME 1 */
129 /* ---------------------------------------------------------------- */
130 /* FUNCTIONS */
131 /* ---------------------------------------------------------------- */
133 /* Define if you have the closesocket function. */
134 #define HAVE_CLOSESOCKET 1
136 /* Define if you don't have vprintf but do have _doprnt. */
137 /* #define HAVE_DOPRNT 1 */
139 /* Define if you have the gethostbyaddr function. */
140 #define HAVE_GETHOSTBYADDR 1
142 /* Define if you have the gethostname function. */
143 #define HAVE_GETHOSTNAME 1
145 /* Define if you have the getpass function. */
146 /* #define HAVE_GETPASS 1 */
148 /* Define if you have the getservbyname function. */
149 #define HAVE_GETSERVBYNAME 1
151 /* Define if you have the getprotobyname function. */
152 #define HAVE_GETPROTOBYNAME
154 /* Define if you have the gettimeofday function. */
155 /* #define HAVE_GETTIMEOFDAY 1 */
157 /* Define if you have the inet_addr function. */
158 #define HAVE_INET_ADDR 1
160 /* Define if you have the inet_ntoa function. */
161 #define HAVE_INET_NTOA 1
163 /* Define if you have the ioctlsocket function. */
164 #define HAVE_IOCTLSOCKET 1
166 /* Define if you have the perror function. */
167 #define HAVE_PERROR 1
169 /* Define if you have the RAND_screen function when using SSL */
170 #define HAVE_RAND_SCREEN 1
172 /* Define if you have the `RAND_status' function when using SSL. */
173 #define HAVE_RAND_STATUS 1
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
179 /* Define if you have the select function. */
180 #define HAVE_SELECT 1
182 /* Define if you have the setvbuf function. */
183 #define HAVE_SETVBUF 1
185 /* Define if you have the socket function. */
186 #define HAVE_SOCKET 1
188 /* Define if you have the strcasecmp function. */
189 /* #define HAVE_STRCASECMP 1 */
191 /* Define if you have the stricmp function. */
192 #define HAVE_STRICMP 1
194 /* Define if you have the strdup function. */
195 #define HAVE_STRDUP 1
197 /* Define if you have the strftime function. */
198 #define HAVE_STRFTIME 1
200 /* Define if you have the strstr function. */
201 #define HAVE_STRSTR 1
203 /* Define if you have the strtoll function. */
204 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__POCC__)
205 #define HAVE_STRTOLL 1
206 #endif
208 /* Define if you have the tcgetattr function. */
209 /* #define HAVE_TCGETATTR 1 */
211 /* Define if you have the tcsetattr function. */
212 /* #define HAVE_TCSETATTR 1 */
214 /* Define if you have the utime function */
215 #ifndef __BORLANDC__
216 #define HAVE_UTIME 1
217 #endif
219 /* Define if you have the getnameinfo function. */
220 #define HAVE_GETNAMEINFO 1
222 /* Define to the type qualifier of arg 1 for getnameinfo. */
223 #define GETNAMEINFO_QUAL_ARG1 const
225 /* Define to the type of arg 1 for getnameinfo. */
226 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
228 /* Define to the type of arg 2 for getnameinfo. */
229 #define GETNAMEINFO_TYPE_ARG2 socklen_t
231 /* Define to the type of args 4 and 6 for getnameinfo. */
232 #define GETNAMEINFO_TYPE_ARG46 DWORD
234 /* Define to the type of arg 7 for getnameinfo. */
235 #define GETNAMEINFO_TYPE_ARG7 int
237 /* Define if you have the recv function. */
238 #define HAVE_RECV 1
240 /* Define to the type of arg 1 for recv. */
241 #define RECV_TYPE_ARG1 SOCKET
243 /* Define to the type of arg 2 for recv. */
244 #define RECV_TYPE_ARG2 char *
246 /* Define to the type of arg 3 for recv. */
247 #define RECV_TYPE_ARG3 int
249 /* Define to the type of arg 4 for recv. */
250 #define RECV_TYPE_ARG4 int
252 /* Define to the function return type for recv. */
253 #define RECV_TYPE_RETV int
255 /* Define if you have the recvfrom function. */
256 #define HAVE_RECVFROM 1
258 /* Define to the type of arg 1 for recvfrom. */
259 #define RECVFROM_TYPE_ARG1 SOCKET
261 /* Define to the type pointed by arg 2 for recvfrom. */
262 #define RECVFROM_TYPE_ARG2 char
264 /* Define to the type of arg 3 for recvfrom. */
265 #define RECVFROM_TYPE_ARG3 int
267 /* Define to the type of arg 4 for recvfrom. */
268 #define RECVFROM_TYPE_ARG4 int
270 /* Define to the type pointed by arg 5 for recvfrom. */
271 #define RECVFROM_TYPE_ARG5 struct sockaddr
273 /* Define to the type pointed by arg 6 for recvfrom. */
274 #define RECVFROM_TYPE_ARG6 int
276 /* Define to the function return type for recvfrom. */
277 #define RECVFROM_TYPE_RETV int
279 /* Define if you have the send function. */
280 #define HAVE_SEND 1
282 /* Define to the type of arg 1 for send. */
283 #define SEND_TYPE_ARG1 SOCKET
285 /* Define to the type qualifier of arg 2 for send. */
286 #define SEND_QUAL_ARG2 const
288 /* Define to the type of arg 2 for send. */
289 #define SEND_TYPE_ARG2 char *
291 /* Define to the type of arg 3 for send. */
292 #define SEND_TYPE_ARG3 int
294 /* Define to the type of arg 4 for send. */
295 #define SEND_TYPE_ARG4 int
297 /* Define to the function return type for send. */
298 #define SEND_TYPE_RETV int
300 /* ---------------------------------------------------------------- */
301 /* TYPEDEF REPLACEMENTS */
302 /* ---------------------------------------------------------------- */
304 /* Define this if in_addr_t is not an available 'typedefed' type */
305 #define in_addr_t unsigned long
307 /* Define as the return type of signal handlers (int or void). */
308 #define RETSIGTYPE void
310 #ifndef _SSIZE_T_DEFINED
311 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) || \
312 defined(__MINGW32__)
313 #elif defined(_WIN64)
314 #define ssize_t __int64
315 #else
316 #define ssize_t int
317 #endif
318 #define _SSIZE_T_DEFINED
319 #endif
321 /* ---------------------------------------------------------------- */
322 /* TYPE SIZES */
323 /* ---------------------------------------------------------------- */
325 /* The number of bytes in a long double. */
326 #define SIZEOF_LONG_DOUBLE 16
328 /* The number of bytes in a long long. */
329 /* #define SIZEOF_LONG_LONG 8 */
331 /* ---------------------------------------------------------------- */
332 /* STRUCT RELATED */
333 /* ---------------------------------------------------------------- */
335 /* Define this if you have struct sockaddr_storage */
336 #ifndef __SALFORDC__
337 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
338 #endif
340 /* Define this if you have struct timeval */
341 #define HAVE_STRUCT_TIMEVAL 1
343 /* ---------------------------------------------------------------- */
344 /* COMPILER SPECIFIC */
345 /* ---------------------------------------------------------------- */
347 /* Undef keyword 'const' if it does not work. */
348 /* #undef const */
350 /* Windows should not have HAVE_GMTIME_R defined */
351 /* #undef HAVE_GMTIME_R */
353 /* Define if the compiler supports C99 variadic macro style. */
354 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
355 #define HAVE_VARIADIC_MACROS_C99 1
356 #endif
358 /* Define if the compiler supports the 'long long' data type. */
359 #if defined(__MINGW32__) || defined(__WATCOMC__)
360 #define HAVE_LONGLONG 1
361 #endif
363 /* Define to avoid VS2005 complaining about portable C functions */
364 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
365 #define _CRT_SECURE_NO_DEPRECATE 1
366 #define _CRT_NONSTDC_NO_DEPRECATE 1
367 #endif
369 /* VS2005 and later dafault size for time_t is 64-bit, unless */
370 /* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
371 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
372 # ifndef _USE_32BIT_TIME_T
373 # define SIZEOF_TIME_T 8
374 # else
375 # define SIZEOF_TIME_T 4
376 # endif
377 #endif
379 /* VS2008 does not support Windows build targets prior to WinXP, */
380 /* so, if no build target has been defined we will target WinXP. */
381 #if defined(_MSC_VER) && (_MSC_VER >= 1500)
382 # ifndef _WIN32_WINNT
383 # define _WIN32_WINNT 0x0501
384 # endif
385 # ifndef WINVER
386 # define WINVER 0x0501
387 # endif
388 # if (_WIN32_WINNT < 0x0501) || (WINVER < 0x0501)
389 # error VS2008 does not support Windows build targets prior to WinXP
390 # endif
391 #endif
393 /* ---------------------------------------------------------------- */
394 /* LARGE FILE SUPPORT */
395 /* ---------------------------------------------------------------- */
397 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
398 # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
399 # define USE_WIN32_LARGE_FILES
400 # else
401 # define USE_WIN32_SMALL_FILES
402 # endif
403 #endif
405 #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
406 # define USE_WIN32_SMALL_FILES
407 #endif
409 /* ---------------------------------------------------------------- */
410 /* LDAP SUPPORT */
411 /* ---------------------------------------------------------------- */
413 #if defined(CURL_HAS_NOVELL_LDAPSDK) || defined(CURL_HAS_MOZILLA_LDAPSDK)
414 #undef CURL_LDAP_HYBRID
415 #undef CURL_LDAP_WIN
416 #define HAVE_LDAP_SSL_H 1
417 #define HAVE_LDAP_URL_PARSE 1
418 #elif defined(CURL_HAS_OPENLDAP_LDAPSDK)
419 #undef CURL_LDAP_HYBRID
420 #undef CURL_LDAP_WIN
421 #define HAVE_LDAP_URL_PARSE 1
422 #else
423 #undef CURL_LDAP_HYBRID
424 #undef HAVE_LDAP_URL_PARSE
425 #define CURL_LDAP_WIN 1
426 #endif
428 /* ---------------------------------------------------------------- */
429 /* ADDITIONAL DEFINITIONS */
430 /* ---------------------------------------------------------------- */
432 /* Define cpu-machine-OS */
433 #undef OS
434 #if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
435 #define OS "i386-pc-win32"
436 #elif defined(_M_IA64) /* Itanium */
437 #define OS "ia64-pc-win32"
438 #elif defined(_M_X64) /* AMD64/EM64T - Not defined until MSVC 2005 */
439 #define OS "amd64-pc-win32"
440 #else
441 #define OS "unknown-pc-win32"
442 #endif
444 /* Name of package */
445 #define PACKAGE "curl"
448 #endif /* __LIB_CONFIG_WIN32_H */