|
|
#ifndef HEADER_CURL_CONFIG_WIN32_H |
|
|
#define HEADER_CURL_CONFIG_WIN32_H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define HAVE_FCNTL_H 1 |
|
|
|
|
|
|
|
|
#define HAVE_IO_H 1 |
|
|
|
|
|
|
|
|
#define HAVE_LOCALE_H 1 |
|
|
|
|
|
|
|
|
#define NEED_MALLOC_H 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__) |
|
|
#define HAVE_STDBOOL_H 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_SYS_PARAM_H 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define HAVE_SYS_STAT_H 1 |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_SYS_TIME_H 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HAVE_SYS_TYPES_H 1 |
|
|
|
|
|
|
|
|
#define HAVE_SYS_UTIME_H 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_UNISTD_H 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_LIBGEN_H 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define STDC_HEADERS 1 |
|
|
|
|
|
|
|
|
#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__) |
|
|
#define HAVE_BOOL_T 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define HAVE_CLOSESOCKET 1 |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_FTRUNCATE 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HAVE_GETPEERNAME 1 |
|
|
|
|
|
|
|
|
#define HAVE_GETSOCKNAME 1 |
|
|
|
|
|
|
|
|
#define HAVE_GETHOSTNAME 1 |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_GETTIMEOFDAY 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HAVE_IOCTLSOCKET 1 |
|
|
|
|
|
|
|
|
#define HAVE_IOCTLSOCKET_FIONBIO 1 |
|
|
|
|
|
|
|
|
#define HAVE_SELECT 1 |
|
|
|
|
|
|
|
|
#define HAVE_SETLOCALE 1 |
|
|
|
|
|
|
|
|
#define HAVE_SETMODE 1 |
|
|
|
|
|
|
|
|
#define HAVE__SETMODE 1 |
|
|
|
|
|
|
|
|
#define HAVE_SOCKET 1 |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_STRCASECMP 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HAVE_STRDUP 1 |
|
|
|
|
|
|
|
|
#define HAVE_STRICMP 1 |
|
|
|
|
|
|
|
|
#if (defined(_MSC_VER) && (_MSC_VER >= 1800)) || defined(__MINGW32__) |
|
|
#define HAVE_STRTOLL 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HAVE_UTIME 1 |
|
|
|
|
|
|
|
|
#define HAVE_RECV 1 |
|
|
|
|
|
|
|
|
#define RECV_TYPE_ARG1 SOCKET |
|
|
|
|
|
|
|
|
#define RECV_TYPE_ARG2 char * |
|
|
|
|
|
|
|
|
#define RECV_TYPE_ARG3 int |
|
|
|
|
|
|
|
|
#define RECV_TYPE_ARG4 int |
|
|
|
|
|
|
|
|
#define RECV_TYPE_RETV int |
|
|
|
|
|
|
|
|
#define HAVE_SEND 1 |
|
|
|
|
|
|
|
|
#define SEND_TYPE_ARG1 SOCKET |
|
|
|
|
|
|
|
|
#define SEND_QUAL_ARG2 const |
|
|
|
|
|
|
|
|
#define SEND_TYPE_ARG2 char * |
|
|
|
|
|
|
|
|
#define SEND_TYPE_ARG3 int |
|
|
|
|
|
|
|
|
#define SEND_TYPE_ARG4 int |
|
|
|
|
|
|
|
|
#define SEND_TYPE_RETV int |
|
|
|
|
|
|
|
|
#if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || defined(__MINGW32__) |
|
|
#define HAVE_SNPRINTF 1 |
|
|
#endif |
|
|
|
|
|
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x600 |
|
|
|
|
|
#define HAVE_INET_NTOP 1 |
|
|
|
|
|
#define HAVE_INET_PTON 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_BASENAME 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) |
|
|
#define HAVE_STRTOK_R 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HAVE_SIGNAL 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define in_addr_t unsigned long |
|
|
|
|
|
|
|
|
#ifndef _SSIZE_T_DEFINED |
|
|
# if defined(__MINGW32__) |
|
|
# elif defined(_WIN64) |
|
|
# define _SSIZE_T_DEFINED |
|
|
# define ssize_t __int64 |
|
|
# else |
|
|
# define _SSIZE_T_DEFINED |
|
|
# define ssize_t int |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define SIZEOF_INT 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define SIZEOF_LONG 4 |
|
|
|
|
|
|
|
|
#if defined(_WIN64) |
|
|
# define SIZEOF_SIZE_T 8 |
|
|
#else |
|
|
# define SIZEOF_SIZE_T 4 |
|
|
#endif |
|
|
|
|
|
|
|
|
#define SIZEOF_CURL_OFF_T 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if (defined(_MSC_VER) && (_MSC_VER >= 1310)) || defined(__MINGW32__) |
|
|
#define HAVE_LONGLONG 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(_MSC_VER) && (_MSC_VER >= 1400) |
|
|
#define _CRT_SECURE_NO_DEPRECATE 1 |
|
|
#define _CRT_NONSTDC_NO_DEPRECATE 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if (defined(_MSC_VER) && (_MSC_VER >= 1400)) || defined(__MINGW32__) |
|
|
# ifndef _USE_32BIT_TIME_T |
|
|
# define SIZEOF_TIME_T 8 |
|
|
# else |
|
|
# define SIZEOF_TIME_T 4 |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(_MSC_VER) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# define VS2008_MIN_TARGET 0x0500 |
|
|
|
|
|
|
|
|
|
|
|
# if defined(_USING_V110_SDK71_) |
|
|
# define VS2012_MIN_TARGET 0x0501 |
|
|
# else |
|
|
# define VS2012_MIN_TARGET 0x0600 |
|
|
# endif |
|
|
|
|
|
|
|
|
|
|
|
# define VS2008_DEF_TARGET 0x0501 |
|
|
|
|
|
|
|
|
|
|
|
# if defined(_USING_V110_SDK71_) |
|
|
# define VS2012_DEF_TARGET 0x0501 |
|
|
# else |
|
|
# define VS2012_DEF_TARGET 0x0600 |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600) |
|
|
# ifndef _WIN32_WINNT |
|
|
# define _WIN32_WINNT VS2008_DEF_TARGET |
|
|
# endif |
|
|
# ifndef WINVER |
|
|
# define WINVER VS2008_DEF_TARGET |
|
|
# endif |
|
|
# if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET) |
|
|
# error VS2008 does not support Windows build targets prior to Windows 2000 |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(_MSC_VER) && (_MSC_VER >= 1700) |
|
|
# ifndef _WIN32_WINNT |
|
|
# define _WIN32_WINNT VS2012_DEF_TARGET |
|
|
# endif |
|
|
# ifndef WINVER |
|
|
# define WINVER VS2012_DEF_TARGET |
|
|
# endif |
|
|
# if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET) |
|
|
# if defined(_USING_V110_SDK71_) |
|
|
# error VS2012 does not support Windows build targets prior to Windows XP |
|
|
# else |
|
|
# error VS2012 does not support Windows build targets prior to Windows \ |
|
|
Vista |
|
|
# endif |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#define HAVE_FREEADDRINFO 1 |
|
|
#define HAVE_GETADDRINFO 1 |
|
|
#define HAVE_GETADDRINFO_THREADSAFE 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
|
|
|
|
|
|
|
|
#define HAVE_STRUCT_TIMEVAL 1 |
|
|
|
|
|
|
|
|
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_MSC_VER) && !defined(_WIN32_WCE) |
|
|
# if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64) |
|
|
# define USE_WIN32_LARGE_FILES |
|
|
# else |
|
|
# define USE_WIN32_SMALL_FILES |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
#if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES) |
|
|
# define USE_WIN32_LARGE_FILES |
|
|
#endif |
|
|
|
|
|
#if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES) |
|
|
# define USE_WIN32_SMALL_FILES |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(USE_WIN32_LARGE_FILES) && defined(__MINGW32__) |
|
|
# ifndef _FILE_OFFSET_BITS |
|
|
# define _FILE_OFFSET_BITS 64 |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(__MINGW32__) && \ |
|
|
defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64) |
|
|
# define SIZEOF_OFF_T 8 |
|
|
#else |
|
|
# define SIZEOF_OFF_T 4 |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \ |
|
|
!defined(USE_THREADS_WIN32) |
|
|
# define USE_THREADS_WIN32 1 |
|
|
#endif |
|
|
|
|
|
#if defined(USE_ARES) && defined(USE_THREADS_WIN32) |
|
|
# error "Only one DNS lookup specialty may be defined at most" |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(CURL_HAS_NOVELL_LDAPSDK) |
|
|
#undef USE_WIN32_LDAP |
|
|
#define HAVE_LDAP_SSL_H 1 |
|
|
#define HAVE_LDAP_URL_PARSE 1 |
|
|
#elif defined(CURL_HAS_OPENLDAP_LDAPSDK) |
|
|
#undef USE_WIN32_LDAP |
|
|
#define HAVE_LDAP_URL_PARSE 1 |
|
|
#else |
|
|
#undef HAVE_LDAP_URL_PARSE |
|
|
#define HAVE_LDAP_SSL 1 |
|
|
#define USE_WIN32_LDAP 1 |
|
|
#endif |
|
|
|
|
|
|
|
|
#if !defined(CURL_WINDOWS_UWP) |
|
|
#define USE_WIN32_CRYPTO |
|
|
#endif |
|
|
|
|
|
|
|
|
#define USE_UNIX_SOCKETS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef CURL_OS |
|
|
#if defined(_M_IX86) || defined(__i386__) |
|
|
#define CURL_OS "i386-pc-win32" |
|
|
#elif defined(_M_X64) || defined(__x86_64__) |
|
|
#define CURL_OS "x86_64-pc-win32" |
|
|
#elif defined(_M_IA64) || defined(__ia64__) |
|
|
#define CURL_OS "ia64-pc-win32" |
|
|
#elif defined(_M_ARM_NT) || defined(__arm__) |
|
|
#define CURL_OS "thumbv7a-pc-win32" |
|
|
#elif defined(_M_ARM64) || defined(__aarch64__) |
|
|
#define CURL_OS "aarch64-pc-win32" |
|
|
#else |
|
|
#define CURL_OS "unknown-pc-win32" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#define PACKAGE "curl" |
|
|
|
|
|
|
|
|
#define USE_MANUAL 1 |
|
|
|
|
|
#endif |
|
|
|