summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoranonymous <local@localhost>2010-07-08 05:46:22 +0700
committeranonymous <local@localhost>2010-07-08 05:46:22 +0700
commit44b2f6d2bf4a1c7695651a908b392a5c3faf6190 (patch)
treeae711bc0c4ecb0a01d885536c2575cd61f36f9f0 /src
parenta0de666da82b08c67821f1dd16a1dd81dba80513 (diff)
downloadlibcxxrt-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.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();