Commit 858d69dc authored by Dominik Charousset's avatar Dominik Charousset

Remove winsock2.h include from native_socket.hpp

parent a352d55b
...@@ -22,17 +22,13 @@ ...@@ -22,17 +22,13 @@
#include "caf/config.hpp" #include "caf/config.hpp"
#ifdef CAF_WINDOWS
# include <winsock2.h>
#endif
namespace caf { namespace caf {
namespace io { namespace io {
namespace network { namespace network {
#ifdef CAF_WINDOWS #ifdef CAF_WINDOWS
using native_socket = SOCKET; using native_socket = unsigned;
constexpr native_socket invalid_native_socket = INVALID_SOCKET; constexpr native_socket invalid_native_socket = static_cast<unsigned>(-1);
#else #else
using native_socket = int; using native_socket = int;
constexpr native_socket invalid_native_socket = -1; constexpr native_socket invalid_native_socket = -1;
......
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