Skip to content

Commit 50127f0

Browse files
committed
build: Remove _WIN32_WINNT definition from CMake
- Let Windows SDK headers determine the default target version
1 parent 2e6102a commit 50127f0

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ function(boost_corosio_setup_properties target)
148148
$<$<PLATFORM_ID:Windows>:ws2_32>)
149149
target_compile_definitions(${target} PUBLIC BOOST_COROSIO_NO_LIB)
150150
target_compile_definitions(${target} PRIVATE BOOST_COROSIO_SOURCE)
151-
target_compile_definitions(${target} PRIVATE $<$<PLATFORM_ID:Windows>:_WIN32_WINNT=0x0602>)
152151
if (BUILD_SHARED_LIBS)
153152
target_compile_definitions(${target} PUBLIC BOOST_COROSIO_DYN_LINK)
154153
else ()

src/corosio/src/detail/win_iocp_sockets.hpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ class win_socket_impl
108108
{
109109
friend class win_iocp_sockets;
110110

111+
win_iocp_sockets& svc_;
112+
connect_op conn_;
113+
read_op rd_;
114+
write_op wr_;
115+
SOCKET socket_ = INVALID_SOCKET;
116+
111117
public:
112118
explicit win_socket_impl(win_iocp_sockets& svc) noexcept;
113119

@@ -141,14 +147,6 @@ class win_socket_impl
141147
void cancel() noexcept;
142148
void close_socket() noexcept;
143149
void set_socket(SOCKET s) noexcept { socket_ = s; }
144-
145-
connect_op conn_;
146-
read_op rd_;
147-
write_op wr_;
148-
149-
private:
150-
win_iocp_sockets& svc_;
151-
SOCKET socket_ = INVALID_SOCKET;
152150
};
153151

154152
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)