summaryrefslogtreecommitdiffstats
path: root/src/polypcore/winsock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/polypcore/winsock.h')
-rw-r--r--src/polypcore/winsock.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/polypcore/winsock.h b/src/polypcore/winsock.h
new file mode 100644
index 00000000..b1e0f7d4
--- /dev/null
+++ b/src/polypcore/winsock.h
@@ -0,0 +1,23 @@
+#ifndef foowinsockhfoo
+#define foowinsockhfoo
+
+#ifdef HAVE_WINSOCK2_H
+#include <winsock2.h>
+
+#define ESHUTDOWN WSAESHUTDOWN
+#define ECONNRESET WSAECONNRESET
+#define ECONNABORTED WSAECONNABORTED
+#define ENETRESET WSAENETRESET
+#define EINPROGRESS WSAEINPROGRESS
+#define EAFNOSUPPORT WSAEAFNOSUPPORT
+#define ETIMEDOUT WSAETIMEDOUT
+#define ECONNREFUSED WSAECONNREFUSED
+#define EHOSTUNREACH WSAEHOSTUNREACH
+
+#endif
+
+#ifdef HAVE_WS2TCPIP_H
+#include <ws2tcpip.h>
+#endif
+
+#endif