mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1349064 - Wrap std::regex_error for GCC. r=glandium
This commit is contained in:
parent
eac3025b28
commit
ec5431c0a2
@ -132,6 +132,14 @@ MOZ_THROW_NORETURN MOZ_THROW_EXPORT MOZ_THROW_INLINE void __throw_system_error(
|
||||
mozalloc_abort(error);
|
||||
}
|
||||
|
||||
MOZ_THROW_NORETURN MOZ_EXPORT MOZ_ALWAYS_INLINE void __throw_regex_error(
|
||||
int err) {
|
||||
char error[128];
|
||||
snprintf(error, sizeof(error) - 1, "fatal: STL threw regex_error: %s (%d)",
|
||||
strerror(err), err);
|
||||
mozalloc_abort(error);
|
||||
}
|
||||
|
||||
} // namespace std
|
||||
|
||||
#undef MOZ_THROW_NORETURN
|
||||
|
@ -25,3 +25,5 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||
]
|
||||
|
||||
NO_PGO = True
|
||||
DisableStlWrapping()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user