[gaim-migrate @ 3852]

Wed, 16 Oct 2002 20:02:57 +0000

author
Herman Bloggs <herman@bluedigits.com>
date
Wed, 16 Oct 2002 20:02:57 +0000
changeset 3719
8a7e100892c7
parent 3718
6db53e60577c
child 3720
dbba62e0d603

[gaim-migrate @ 3852]
Redefines unix errors to win32 errors

src/win32/winerror.h file | annotate | diff | comparison | revisions
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/win32/winerror.h	Wed Oct 16 20:02:57 2002 +0000
@@ -0,0 +1,41 @@
+/*
+ *  winerror.h
+ *
+ *  Author: Herman Bloggs <hermanator12002@yahoo.com>
+ *  Date: October 14, 2002
+ *  Description: Redefine Unix Errors
+ */
+
+#ifndef _WINERROR_H
+#define _WINERROR_H
+
+/* Here we define unix socket errors as windows socket errors */
+
+#define ENETDOWN WSAENETDOWN
+#define EAFNOSUPPORT WSAEAFNOSUPPORT
+#define EINPROGRESS WSAEINPROGRESS
+#define ENOBUFS WSAENOBUFS
+#define EPROTONOSUPPORT WSAEPROTONOSUPPORT
+#define EPROTOTYPE WSAEPROTOTYPE
+#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
+
+#define EADDRINUSE WSAEADDRINUSE
+#define EINPROGRESS WSAEINPROGRESS
+#define EALREADY WSAEALREADY
+#define EADDRNOTAVAIL WSAEADDRNOTAVAIL
+#define ECONNREFUSED WSAECONNREFUSED
+#define EISCONN WSAEISCONN
+#define ENETUNREACH WSAENETUNREACH
+#define ENOTSOCK WSAENOTSOCK
+#define ETIMEDOUT WSAETIMEDOUT
+#define EWOULDBLOCK WSAEWOULDBLOCK
+
+#define ENOTCONN WSAENOTCONN
+#define ENETRESET WSAENETRESET
+#define EOPNOTSUPP WSAEOPNOTSUPP
+#define ESHUTDOWN WSAESHUTDOWN
+#define EMSGSIZE WSAEMSGSIZE
+#define ECONNABORTED WSAECONNABORTED
+#define ECONNRESET WSAECONNRESET
+
+#endif /* end _WINERROR_H */

mercurial