Skip to content

Commit 05c20a5

Browse files
committed
build: add symbol for upcoming gcc 4.9's libstdc++
1 parent 49a3352 commit 05c20a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/compat/glibcxx_compat.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,11 @@ ctype<char>::_M_widen_init() const {
7777
}
7878
}
7979

80+
void __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__));
81+
void __throw_out_of_range_fmt(const char* err, ...)
82+
{
83+
// Safe and over-simplified version. Ignore the format and print it as-is.
84+
__throw_out_of_range(err);
85+
}
86+
8087
}// namespace std

0 commit comments

Comments
 (0)