Hi,

When trying to compile current octave with MSVC10, I get a bunch of
macro redefinition in errno.h module. See the following from the
involved headers:

$ grep ECONNRESET errno.h
#  define ECONNRESET      10054

$ grep ECONNRESET /c/Program\ Files/Microsoft\ Visual\ Studio\
10.0/VC/include/errno.h
#define ECONNRESET      108

$ grep ECONNRESET /c/Program\ Files/Microsoft\
SDKs/Windows/v7.0A/Include/WinSock2.h
#define WSAECONNRESET           (WSABASEERR+54)
#define ECONNRESET              WSAECONNRESET

When I check the winsock2.h headers, I see that the second definition
is above is actually commented out, with the following comment:

/*
 * Windows Sockets errors redefined as regular Berkeley error constants.
 * These are commented out in Windows NT to avoid conflicts with errno.h.
 * Use the WSA constants instead.
 */

Michael.

Reply via email to