diff options
author | Jonathan Roelofs <jonathan@codesourcery.com> | 2014-09-02 20:34:23 +0000 |
---|---|---|
committer | Jonathan Roelofs <jonathan@codesourcery.com> | 2014-09-02 20:34:23 +0000 |
commit | a409d59cf5847b1296fc881887bc219abc3f6a32 (patch) | |
tree | 1c1bcab874898a2514eb940942162476d0fb379b /libcxx/src/ios.cpp | |
parent | 3f7a24e4007d4689a3602c4c5425bb2e27915530 (diff) | |
download | bcm5719-llvm-a409d59cf5847b1296fc881887bc219abc3f6a32.tar.gz bcm5719-llvm-a409d59cf5847b1296fc881887bc219abc3f6a32.zip |
Newlib names ELAST differently than linux
llvm-svn: 216943
Diffstat (limited to 'libcxx/src/ios.cpp')
-rw-r--r-- | libcxx/src/ios.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libcxx/src/ios.cpp b/libcxx/src/ios.cpp index 260ec76374e..b71d7da1a8b 100644 --- a/libcxx/src/ios.cpp +++ b/libcxx/src/ios.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +#include "__config" #include "ios" #include "streambuf" #include "istream" @@ -52,11 +53,9 @@ string __iostream_category::message(int ev) const { if (ev != static_cast<int>(io_errc::stream) -#ifdef ELAST - && ev <= ELAST -#elif defined(__linux__) - && ev <= 4095 -#endif // ELAST +#ifdef _LIBCPP_ELAST + && ev <= _LIBCPP_ELAST +#endif // _LIBCPP_ELAST ) return __do_message::message(ev); return string("unspecified iostream_category error"); |