Commit f72da4d9 authored by Dominik Charousset's avatar Dominik Charousset

Fix build on MSVC/Windows

(cherry picked from commit c5999142)
parent 372a65c7
......@@ -120,6 +120,7 @@ is based on [Keep a Changelog](https://keepachangelog.com).
- Exceptions while handling requests now trigger error messages (backport from
[0.18.0]).
- Fix build on GCC 7.2
- Fix build error in the OpenSSL module under some MSVC configurations
## [0.17.4] - 2019-02-08
......
......@@ -48,6 +48,29 @@
#include "caf/io/network/interfaces.hpp"
#include "caf/io/network/stream_impl.hpp"
#ifdef CAF_WINDOWS
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif // CAF_WINDOWS
# ifndef NOMINMAX
# define NOMINMAX
# endif // NOMINMAX
# ifdef CAF_MINGW
# undef _WIN32_WINNT
# undef WINVER
# define _WIN32_WINNT WindowsVista
# define WINVER WindowsVista
# include <w32api.h>
# endif // CAF_MINGW
# include <windows.h>
# include <winsock2.h>
# include <ws2ipdef.h>
# include <ws2tcpip.h>
#else
# include <sys/socket.h>
# include <sys/types.h>
#endif
#include "caf/openssl/session.hpp"
namespace caf::openssl {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment