commit | 54b409fdb9489b305bf95f4d4f52b49c7926c429 | [log] [tgz] |
---|---|---|
author | Howard Hinnant <hhinnant@apple.com> | Wed Aug 11 17:04:31 2010 +0000 |
committer | Howard Hinnant <hhinnant@apple.com> | Wed Aug 11 17:04:31 2010 +0000 |
tree | 4e1c893fe8a940ea767c4eef990dff879fcbbd25 | |
parent | 37aab7674a74dd0224b14976e91f89abe48e9ae9 [diff] [blame] |
now works with -fno-exceptions and -fno-rtti llvm-svn: 110828
diff --git a/libcxx/src/system_error.cpp b/libcxx/src/system_error.cpp index 3c1f000..1ca85cb 100644 --- a/libcxx/src/system_error.cpp +++ b/libcxx/src/system_error.cpp
@@ -193,7 +193,9 @@ void __throw_system_error(int ev, const char* what_arg) { +#ifndef _LIBCPP_NO_EXCEPTIONS throw system_error(error_code(ev, system_category()), what_arg); +#endif } _LIBCPP_END_NAMESPACE_STD