summaryrefslogtreecommitdiff
path: root/src/exception.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/exception.cc')
-rw-r--r--src/exception.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exception.cc b/src/exception.cc
index 11f8ca5..5b2c011 100644
--- a/src/exception.cc
+++ b/src/exception.cc
@@ -758,7 +758,11 @@ extern "C" _Unwind_Reason_Code __gxx_personality_v0(int version,
* pointer to the caught exception, which is either the adjusted pointer (for
* C++ exceptions) of the unadjusted pointer (for foreign exceptions).
*/
+#if __GNUC_MINOR__ > 2
extern "C" void *__cxa_begin_catch(void *e) throw()
+#else
+extern "C" void *__cxa_begin_catch(void *e)
+#endif
{
// Decrement the uncaught exceptions count
__cxa_eh_globals *globals = __cxa_get_globals();