diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-07 21:08:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-07 21:08:01 +0000 |
commit | f857581820d15e410e9945d2fcd5f7163be25a96 (patch) | |
tree | 41f38760e19d47a9e21d0f64ece2bddaaab8aaf7 /src/system_error.cpp | |
parent | a5b2dbc259e289ea23fe9aebb34eba2c1dc7fefb (diff) |
Notes
Diffstat (limited to 'src/system_error.cpp')
-rw-r--r-- | src/system_error.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/system_error.cpp b/src/system_error.cpp index b40409f854ab9..9c8adc4f323e4 100644 --- a/src/system_error.cpp +++ b/src/system_error.cpp @@ -7,7 +7,8 @@ // //===----------------------------------------------------------------------===// -#define _LIBCPP_BUILDING_SYSTEM_ERROR +#define _LIBCPP_BUILDING_SYSTEM_ERROR +#include "__config" #include "system_error" #include "string" #include "cstring" @@ -65,10 +66,10 @@ __generic_error_category::name() const _NOEXCEPT string __generic_error_category::message(int ev) const { -#ifdef ELAST - if (ev > ELAST) +#ifdef _LIBCPP_ELAST + if (ev > _LIBCPP_ELAST) return string("unspecified generic_category error"); -#endif // ELAST +#endif // _LIBCPP_ELAST return __do_message::message(ev); } @@ -97,20 +98,20 @@ __system_error_category::name() const _NOEXCEPT string __system_error_category::message(int ev) const { -#ifdef ELAST - if (ev > ELAST) +#ifdef _LIBCPP_ELAST + if (ev > _LIBCPP_ELAST) return string("unspecified system_category error"); -#endif // ELAST +#endif // _LIBCPP_ELAST return __do_message::message(ev); } error_condition __system_error_category::default_error_condition(int ev) const _NOEXCEPT { -#ifdef ELAST - if (ev > ELAST) +#ifdef _LIBCPP_ELAST + if (ev > _LIBCPP_ELAST) return error_condition(ev, system_category()); -#endif // ELAST +#endif // _LIBCPP_ELAST return error_condition(ev, generic_category()); } |