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.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcxx/src/ios.cpp b/libcxx/src/ios.cpp
index 3bf3cbc3a74..4d1261e3854 100644
--- a/libcxx/src/ios.cpp
+++ b/libcxx/src/ios.cpp
@@ -106,7 +106,11 @@ __iostream_category::name() const
string
__iostream_category::message(int ev) const
{
- if (ev != static_cast<int>(io_errc::stream) && ev <= ELAST)
+ if (ev != static_cast<int>(io_errc::stream)
+#ifdef ELAST
+ && ev <= ELAST
+#endif
+ )
return __do_message::message(ev);
return string("unspecified iostream_category error");
}
OpenPOWER on IntegriCloud