From 28befb4c534a428f2612475571f567dafa10a512 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Fri, 11 Apr 2014 18:51:49 -0400 Subject: [PATCH] build: add symbol for upcoming gcc 4.9's libstdc++ --- src/compat/glibcxx_compat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compat/glibcxx_compat.cpp b/src/compat/glibcxx_compat.cpp index 6e04f6745..e91376f81 100644 --- a/src/compat/glibcxx_compat.cpp +++ b/src/compat/glibcxx_compat.cpp @@ -77,4 +77,11 @@ ctype::_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