summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/functexcept.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/src/functexcept.cc')
-rw-r--r--libstdc++-v3/src/functexcept.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/src/functexcept.cc b/libstdc++-v3/src/functexcept.cc
index 352a6b70aef..d47eccbe11c 100644
--- a/libstdc++-v3/src/functexcept.cc
+++ b/libstdc++-v3/src/functexcept.cc
@@ -29,6 +29,7 @@
#include <ios>
#include <system_error>
#include <future>
+#include <functional>
#ifdef _GLIBCXX_USE_NLS
# include <libintl.h>
@@ -104,6 +105,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
__throw_future_error(int __i)
{ throw future_error(future_errc(__i)); }
+ void
+ __throw_bad_function_call()
+ { throw bad_function_call(); }
#else
void
__throw_bad_exception(void)
@@ -169,6 +173,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
__throw_future_error(int)
{ std::abort(); }
+ void
+ __throw_bad_function_call()
+ { std::abort(); }
+
#endif //__EXCEPTIONS
_GLIBCXX_END_NAMESPACE