bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redefinition of errno constants in MSVC10


From: Michael Goffioul
Subject: Redefinition of errno constants in MSVC10
Date: Tue, 18 Oct 2011 17:49:28 +0100

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

[Prev in Thread] Current Thread [Next in Thread]