rename accountopt.[ch] to purpleaccountoption.[ch]
[pidgin-git.git] / libpurple / win32 / wpurpleerror.h
blob990249760ce4cd90b13e463a2ca04480da732c99
1 /*
2 * purple
4 * File: wpurpleerror.h
5 * Date: October 14, 2002
6 * Description: Convert Winsock errors to Unix errors
8 * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 #ifndef PURPLE_WIN32_WPURPLEERROR_H
26 #define PURPLE_WIN32_WPURPLEERROR_H
28 /* Here we define unix socket errors as windows socket errors */
30 #undef ENETDOWN
31 #define ENETDOWN WSAENETDOWN
32 #undef EAFNOSUPPORT
33 #define EAFNOSUPPORT WSAEAFNOSUPPORT
34 #undef EINPROGRESS
35 #define EINPROGRESS WSAEINPROGRESS
36 #undef ENOBUFS
37 #define ENOBUFS WSAENOBUFS
38 #undef EPROTONOSUPPORT
39 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
40 #undef EPROTOTYPE
41 #define EPROTOTYPE WSAEPROTOTYPE
42 #undef ESOCKTNOSUPPORT
43 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
45 #undef EADDRINUSE
46 #define EADDRINUSE WSAEADDRINUSE
47 #undef EINPROGRESS
48 #define EINPROGRESS WSAEINPROGRESS
49 #undef EALREADY
50 #define EALREADY WSAEALREADY
51 #undef EADDRNOTAVAIL
52 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
53 #undef ECONNREFUSED
54 #define ECONNREFUSED WSAECONNREFUSED
55 #undef EISCONN
56 #define EISCONN WSAEISCONN
57 #undef ENETUNREACH
58 #define ENETUNREACH WSAENETUNREACH
59 #undef ENOTSOCK
60 #define ENOTSOCK WSAENOTSOCK
61 #undef ETIMEDOUT
62 #define ETIMEDOUT WSAETIMEDOUT
63 #undef EWOULDBLOCK
64 #define EWOULDBLOCK WSAEWOULDBLOCK
66 #undef ENOTCONN
67 #define ENOTCONN WSAENOTCONN
68 #undef ENETRESET
69 #define ENETRESET WSAENETRESET
70 #undef EOPNOTSUPP
71 #define EOPNOTSUPP WSAEOPNOTSUPP
72 #undef ESHUTDOWN
73 #define ESHUTDOWN WSAESHUTDOWN
74 #undef EMSGSIZE
75 #define EMSGSIZE WSAEMSGSIZE
76 #undef ECONNABORTED
77 #define ECONNABORTED WSAECONNABORTED
78 #undef ECONNRESET
79 #define ECONNRESET WSAECONNRESET
80 #undef EHOSTUNREACH
81 #define EHOSTUNREACH WSAEHOSTUNREACH
83 #endif /* PURPLE_WIN32_WPURPLEERROR_H */