https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cf5926c207f8c9e95da136e43f00392086b11f8b

commit cf5926c207f8c9e95da136e43f00392086b11f8b
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Sun Feb 3 18:25:04 2019 +0100
Commit:     Timo Kreuzer <[email protected]>
CommitDate: Tue Feb 12 19:31:33 2019 +0100

    [CPPRT] Implement __std_terminate wrapper for Clang-CL
---
 sdk/lib/cpprt/CMakeLists.txt |  1 +
 sdk/lib/cpprt/terminate.cpp  | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/sdk/lib/cpprt/CMakeLists.txt b/sdk/lib/cpprt/CMakeLists.txt
index 4e090f2a0a..de120e4042 100644
--- a/sdk/lib/cpprt/CMakeLists.txt
+++ b/sdk/lib/cpprt/CMakeLists.txt
@@ -8,6 +8,7 @@ include_directories(
 list(APPEND SOURCE
     ehvec.cpp
     new_nothrow.cpp
+    terminate.cpp
     typeinfo.cpp)
 
 if(ARCH STREQUAL "i386")
diff --git a/sdk/lib/cpprt/terminate.cpp b/sdk/lib/cpprt/terminate.cpp
new file mode 100644
index 0000000000..14fc919c81
--- /dev/null
+++ b/sdk/lib/cpprt/terminate.cpp
@@ -0,0 +1,14 @@
+/*
+ * PROJECT:     ReactOS C++ Runtime Library
+ * LICENSE:     CC0-1.0 (https://spdx.org/licenses/CC0-1.0)
+ * PURPOSE:     __std_terminate implementation
+ * COPYRIGHT:   Timo Kreuzer ([email protected])
+ */
+
+#include <exception>
+
+extern "C"
+void __std_terminate()
+{
+    terminate();
+}

Reply via email to