]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/inet6.cpp
Include the matching header first in .cpp files
[libs/net.git] / source / net / inet6.cpp
index 79da1d2269316e2ab0931f738b2fd160f6d3b773..758005860582dc968ef2064e6d2047e19376fe5c 100644 (file)
@@ -1,11 +1,6 @@
-#ifdef WIN32
-#include <winsock2.h>
-#include <ws2tcpip.h>
-#else
-#include <netinet/in.h>
-#endif
-#include <msp/strings/format.h>
 #include "inet6.h"
+#include "platform_api.h"
+#include <msp/strings/format.h>
 #include "sockaddr_private.h"
 
 using namespace std;
@@ -13,12 +8,6 @@ using namespace std;
 namespace Msp {
 namespace Net {
 
-Inet6Addr::Inet6Addr():
-       port(0)
-{
-       fill(addr, addr+16, 0);
-}
-
 Inet6Addr::Inet6Addr(const SysAddr &sa)
 {
        const sockaddr_in6 &sai6 = reinterpret_cast<const sockaddr_in6 &>(sa.addr);