From 61aa2134a48a6a436f498cc69ce895cd8456e080 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 2 Jan 2006 13:44:06 +0000 Subject: Compile Windows with winsock2.h. But note that we still link with wsock32! This works because wsock32 commonly loads ws2_32 anyway and we [intend to] check upon presense of winsock2-specific API at run-time. --- e_os.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'e_os.h') diff --git a/e_os.h b/e_os.h index df72c7454a..78753de970 100644 --- a/e_os.h +++ b/e_os.h @@ -259,6 +259,18 @@ extern "C" { */ # define _WIN32_WINNT 0x0400 # endif +# if !defined(OPENSSL_NO_SOCK) && defined(_WIN32_WINNT) + /* + * Just like defining _WIN32_WINNT including winsock2.h implies + * certain "discipline" for maintaing [broad] binary compatibility. + * As long as structures are invariant among Winsock versions, + * it's sufficient to check for specific Winsock2 API availability + * at run-time [DSO_global_lookup is recommended]... + */ +# include +# include + /* yes, they have to be #included prior */ +# endif # include # include # include -- cgit v1.2.3