Windows fix: MSVC 2010 has errno.h.
authorPau Garcia i Quiles <pgquiles@elpauer.org>
Fri, 31 Dec 2010 15:10:42 +0000 (16:10 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 31 Dec 2010 15:12:18 +0000 (16:12 +0100)
dbus/dbus-sockets-win.h

index 5dead05..4e1ab8c 100644 (file)
 #include <errno.h>
 #endif
 
-/* Make use of the fact that the WSAE* error codes don't
- * overlap with errno E* codes. Wrapper functions store
- * the return value from WSAGetLastError() in errno.
- */
-#if defined(EPROTONOSUPPORT) || \
-    defined(EAFNOSUPPORT) || \
-    defined(EWOULDBLOCK)
-#error This does not look like Win32 and the Microsoft C library
-#endif
-
 #define DBUS_SOCKET_IS_INVALID(s) ((SOCKET)(s) == INVALID_SOCKET)
 #define DBUS_SOCKET_API_RETURNS_ERROR(n) ((n) == SOCKET_ERROR)
 #define DBUS_SOCKET_SET_ERRNO() (_dbus_win_set_errno (WSAGetLastError()))