Bug 932112 - Add stdc++-compat hack for std::__detail::_List_node_base::_M_reverse, necessary for webrtc update. r=nfroyd

This commit is contained in:
Mike Hommey 2013-10-30 07:42:58 +09:00
parent 40d78c1fd7
commit 6bd421f1c1

View File

@ -69,6 +69,8 @@ namespace std __attribute__((visibility("default"))) {
/* Hack to avoid GLIBCXX_3.4.15 symbol versions */
#if MOZ_LIBSTDCXX_VERSION >= GLIBCXX_VERSION(3, 4, 15)
static void swap(_List_node_base& __x, _List_node_base& __y) throw ();
void reverse() throw();
};
namespace __detail {
@ -85,6 +87,8 @@ namespace std __attribute__((visibility("default"))) {
#if MOZ_LIBSTDCXX_VERSION >= GLIBCXX_VERSION(3, 4, 15)
static void swap(_List_node_base& __x, _List_node_base& __y) throw ();
void _M_reverse() throw();
#endif
};
@ -116,6 +120,12 @@ namespace std __attribute__((visibility("default"))) {
std::_List_node_base::swap(*((std::_List_node_base *) &__x),
*((std::_List_node_base *) &__y));
}
void
_List_node_base::_M_reverse() throw ()
{
((std::_List_node_base *)this)->reverse();
}
}
#endif