blob: 0476e3a5f58c7eb583ecf35a28122eef2d84ebae [file] [log] [blame]
From 226c6c6d989445ddc55fa3bab50234f5f5b827e0 Mon Sep 17 00:00:00 2001
From: Logan Chien <logan.chien@mediatek.com>
Date: Wed, 12 Feb 2014 20:09:43 +0800
Subject: [PATCH 4/6] [libc++] std::terminate() should not specify "throw ()"
in C++ 98.
---
include/exception | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/exception b/include/exception
index cad802e..681a659 100644
--- a/include/exception
+++ b/include/exception
@@ -112,7 +112,11 @@ _LIBCPP_NORETURN _LIBCPP_FUNC_VIS void unexpected();
typedef void (*terminate_handler)();
_LIBCPP_FUNC_VIS terminate_handler set_terminate(terminate_handler) _NOEXCEPT;
_LIBCPP_FUNC_VIS terminate_handler get_terminate() _NOEXCEPT;
+#if __cplusplus >= 201103L
_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void terminate() _NOEXCEPT;
+#else
+_LIBCPP_NORETURN _LIBCPP_FUNC_VIS void terminate();
+#endif
_LIBCPP_FUNC_VIS bool uncaught_exception() _NOEXCEPT;
--
1.9.0.rc1.175.g0b1dcb5