aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/os
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2008-10-24 10:41:42 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2008-10-24 10:41:42 +0000
commit918bf5c10e1d5b026dfedd58d3e701536142fcc2 (patch)
treef5622566f8248f9a9fdcb09a7127c03b49ab5d35 /libstdc++-v3/config/os
parent100d537d7a7b5c0ef775d568ce3eefffa72f2c41 (diff)
downloadgcc-918bf5c10e1d5b026dfedd58d3e701536142fcc2.zip
gcc-918bf5c10e1d5b026dfedd58d3e701536142fcc2.tar.gz
gcc-918bf5c10e1d5b026dfedd58d3e701536142fcc2.tar.bz2
error_constants.h (enum errc): Remove no_posix_equivalent.
2008-10-24 Paolo Carlini <paolo.carlini@oracle.com> * config/os/generic/error_constants.h (enum errc): Remove no_posix_equivalent. * config/os/mingw32/error_constants.h (enum errc): Likewise. * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc: Adjust. From-SVN: r141341
Diffstat (limited to 'libstdc++-v3/config/os')
-rw-r--r--libstdc++-v3/config/os/generic/error_constants.h5
-rw-r--r--libstdc++-v3/config/os/mingw32/error_constants.h9
2 files changed, 6 insertions, 8 deletions
diff --git a/libstdc++-v3/config/os/generic/error_constants.h b/libstdc++-v3/config/os/generic/error_constants.h
index edb196f..73918e5 100644
--- a/libstdc++-v3/config/os/generic/error_constants.h
+++ b/libstdc++-v3/config/os/generic/error_constants.h
@@ -40,7 +40,7 @@
_GLIBCXX_BEGIN_NAMESPACE(std)
- enum class errc : long
+ enum class errc
{
address_family_not_supported = EAFNOSUPPORT,
address_in_use = EADDRINUSE,
@@ -172,8 +172,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
value_too_large = EOVERFLOW,
#endif
- wrong_protocol_type = EPROTOTYPE,
- no_posix_equivalent = 1L << 16
+ wrong_protocol_type = EPROTOTYPE
};
_GLIBCXX_END_NAMESPACE
diff --git a/libstdc++-v3/config/os/mingw32/error_constants.h b/libstdc++-v3/config/os/mingw32/error_constants.h
index 7b756cc..ce34bde 100644
--- a/libstdc++-v3/config/os/mingw32/error_constants.h
+++ b/libstdc++-v3/config/os/mingw32/error_constants.h
@@ -1,6 +1,6 @@
// Specific definitions for mingw32 platform -*- C++ -*-
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -43,7 +43,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// Most of the commented-out error codes are socket-related and could be
// replaced by Winsock WSA-prefixed equivalents.
- enum class errc : long
+ enum class errc
{
// address_family_not_supported = EAFNOSUPPORT,
// address_in_use = EADDRINUSE,
@@ -119,11 +119,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// timed_out = ETIMEDOUT,
too_many_files_open_in_system = ENFILE,
too_many_files_open = EMFILE,
- too_many_links = EMLINK,
+ too_many_links = EMLINK
// too_many_symbolic_link_levels = ELOOP,
// value_too_large = EOVERFLOW,
- // wrong_protocol_type = EPROTOTYPE,
- no_posix_equivalent = 1L << 16
+ // wrong_protocol_type = EPROTOTYPE
};
_GLIBCXX_END_NAMESPACE