diff options
Diffstat (limited to 'src/win32_compatibility.cpp')
-rw-r--r-- | src/win32_compatibility.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/win32_compatibility.cpp b/src/win32_compatibility.cpp index 083925b..e7710e5 100644 --- a/src/win32_compatibility.cpp +++ b/src/win32_compatibility.cpp | |||
@@ -350,5 +350,15 @@ int DynamicWinsock2::DYN_FD_ISSET(SOCKET s, fd_set *set) | |||
350 | return out; | 350 | return out; |
351 | } | 351 | } |
352 | 352 | ||
353 | DynamicWinsock2::Winsock2::Winsock2() | ||
354 | { | ||
355 | DynamicWinsock2::WSAStartup( MAKEWORD(2, 2), &wsaData ); | ||
356 | } | ||
357 | |||
358 | DynamicWinsock2::Winsock2::~Winsock2() | ||
359 | { | ||
360 | DynamicWinsock2::WSACleanup(); | ||
361 | } | ||
362 | |||
353 | #endif | 363 | #endif |
354 | 364 | ||