diff options
Diffstat (limited to 'src/third_party/cares/platform/windows_x86_64/install/include/ares_build.h')
-rw-r--r-- | src/third_party/cares/platform/windows_x86_64/install/include/ares_build.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/third_party/cares/platform/windows_x86_64/install/include/ares_build.h b/src/third_party/cares/platform/windows_x86_64/install/include/ares_build.h new file mode 100644 index 00000000000..ffb0a5f4056 --- /dev/null +++ b/src/third_party/cares/platform/windows_x86_64/install/include/ares_build.h @@ -0,0 +1,41 @@ +#ifndef __CARES_BUILD_H +#define __CARES_BUILD_H + +#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t +#define CARES_TYPEOF_ARES_SSIZE_T __int64 + +/* Prefix names with CARES_ to make sure they don't conflict with other config.h + * files. We need to include some dependent headers that may be system specific + * for C-Ares */ +#define CARES_HAVE_SYS_TYPES_H +/* #undef CARES_HAVE_SYS_SOCKET_H */ +#define CARES_HAVE_WINDOWS_H +#define CARES_HAVE_WS2TCPIP_H +#define CARES_HAVE_WINSOCK2_H +#define CARES_HAVE_WINDOWS_H + +#ifdef CARES_HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif + +#ifdef CARES_HAVE_SYS_SOCKET_H +# include <sys/socket.h> +#endif + +#ifdef CARES_HAVE_WINSOCK2_H +# include <winsock2.h> +#endif + +#ifdef CARES_HAVE_WS2TCPIP_H +# include <ws2tcpip.h> +#endif + +#ifdef CARES_HAVE_WINDOWS_H +# include <windows.h> +#endif + + +typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t; +typedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t; + +#endif /* __CARES_BUILD_H */ |