summaryrefslogtreecommitdiffstats
path: root/libcxx/src/ios.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/src/ios.cpp')
-rw-r--r--libcxx/src/ios.cpp9
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");
OpenPOWER on IntegriCloud