diff options
Diffstat (limited to 'src/compat/glibcxx_compat.cpp')
-rw-r--r-- | src/compat/glibcxx_compat.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compat/glibcxx_compat.cpp b/src/compat/glibcxx_compat.cpp index 6e04f67459..e91376f818 100644 --- a/src/compat/glibcxx_compat.cpp +++ b/src/compat/glibcxx_compat.cpp @@ -77,4 +77,11 @@ ctype<char>::_M_widen_init() const { } } +void __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)); +void __throw_out_of_range_fmt(const char* err, ...) +{ + // Safe and over-simplified version. Ignore the format and print it as-is. + __throw_out_of_range(err); +} + }// namespace std |