This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch/libstdc++] Move posix_errno into namespace posix_error for mingw32 too.
- From: "Danny Smith" <dansmister at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org
- Date: Sat, 29 Dec 2007 18:41:01 +1300
- Subject: [Patch/libstdc++] Move posix_errno into namespace posix_error for mingw32 too.
Committed as obvious, to allow libstdc++ to build again on mingw32
2007-12-29 Danny Smith <dannysmith@users.sourceforge.net>
* config/os/mingw32/error_constants.h (enum posix_errno): Move
inside namespace posix_error
Index: config/os/mingw32/error_constants.h
===================================================================
--- config/os/mingw32/error_constants.h (revision 131211)
+++ config/os/mingw32/error_constants.h (working copy)
@@ -41,8 +41,9 @@
_GLIBCXX_BEGIN_NAMESPACE(std)
+namespace posix_error {
// Most of the commented-out error codes are socket-related and could be
-// replaced bu Winsock WSA-prefixed equivalents.
+// replaced bu Winsock WSA-prefixed equivalents.
enum posix_errno
{
// address_family_not_supported = EAFNOSUPPORT,
@@ -125,6 +126,7 @@
// wrong_protocol_type = EPROTOTYPE,
no_posix_equivalent = 1L << 16
};
+}
_GLIBCXX_END_NAMESPACE