diff options
author | anonymous <local@localhost> | 2010-07-08 05:46:22 +0700 |
---|---|---|
committer | anonymous <local@localhost> | 2010-07-08 05:46:22 +0700 |
commit | 44b2f6d2bf4a1c7695651a908b392a5c3faf6190 (patch) | |
tree | ae711bc0c4ecb0a01d885536c2575cd61f36f9f0 /src | |
parent | a0de666da82b08c67821f1dd16a1dd81dba80513 (diff) | |
download | libcxxrt-44b2f6d2bf4a1c7695651a908b392a5c3faf6190.tar.gz libcxxrt-44b2f6d2bf4a1c7695651a908b392a5c3faf6190.tar.bz2 libcxxrt-44b2f6d2bf4a1c7695651a908b392a5c3faf6190.tar.xz |
Fix for gcc-4.2
Diffstat (limited to 'src')
-rw-r--r-- | src/exception.cc | 4 |
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(); |