summaryrefslogtreecommitdiff
path: root/node/UdpSocket.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-12 21:25:36 -0400
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-12 21:25:36 -0400
commitd6414c9ff74e3f8076a1e94d3c6074366119900e (patch)
treeb0620f1f1610b51b386964d6758b5787b6cb7d6f /node/UdpSocket.cpp
parent5076c75b079fe02c843ca85dc20821e468b2d7b8 (diff)
downloadinfinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.tar.gz
infinitytier-d6414c9ff74e3f8076a1e94d3c6074366119900e.zip
Windows compiles! (w/Visual Studio 2012) That's about all it does, but it's a start.
Diffstat (limited to 'node/UdpSocket.cpp')
-rw-r--r--node/UdpSocket.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/node/UdpSocket.cpp b/node/UdpSocket.cpp
index dfe2b11d..2f59a03c 100644
--- a/node/UdpSocket.cpp
+++ b/node/UdpSocket.cpp
@@ -33,10 +33,12 @@
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef _WIN32
-#include <Windows.h>
+#include "Constants.hpp"
+
+#ifdef __WINDOWS__
#include <WinSock2.h>
#include <WS2tcpip.h>
+#include <Windows.h>
#else
#include <sys/socket.h>
#include <arpa/inet.h>