]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/streamserversocket.cpp
Use the correct #ifdef for Windows
[libs/net.git] / source / net / streamserversocket.cpp
index 8039ec986155155196eb4360c62197468ddc7914..e408dcedfb6ae6c2506e3fd81565c7da7d04f947 100644 (file)
@@ -1,4 +1,4 @@
-#ifdef WIN32
+#ifdef _WIN32
 #include <winsock2.h>
 #endif
 #include <cerrno>
@@ -29,7 +29,7 @@ void StreamServerSocket::listen(const SockAddr &addr, unsigned backlog)
        if(err==-1)
                throw system_error("listen");
 
-#ifdef WIN32
+#ifdef _WIN32
        WSAEventSelect(priv->handle, *priv->event, FD_ACCEPT);
 #endif
        set_events(IO::P_INPUT);